Commit cd6763be authored by Jan Beulich's avatar Jan Beulich Committed by Dmitry Torokhov

Input: xen-kbdfront - prefer xenbus_write() over xenbus_printf() where possible

... as being the simpler variant.
Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 83510e5f
...@@ -130,8 +130,8 @@ static int xenkbd_probe(struct xenbus_device *dev, ...@@ -130,8 +130,8 @@ static int xenkbd_probe(struct xenbus_device *dev,
if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-abs-pointer", "%d", &abs) < 0) if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-abs-pointer", "%d", &abs) < 0)
abs = 0; abs = 0;
if (abs) { if (abs) {
ret = xenbus_printf(XBT_NIL, dev->nodename, ret = xenbus_write(XBT_NIL, dev->nodename,
"request-abs-pointer", "1"); "request-abs-pointer", "1");
if (ret) { if (ret) {
pr_warning("xenkbd: can't request abs-pointer"); pr_warning("xenkbd: can't request abs-pointer");
abs = 0; abs = 0;
...@@ -327,8 +327,8 @@ static void xenkbd_backend_changed(struct xenbus_device *dev, ...@@ -327,8 +327,8 @@ static void xenkbd_backend_changed(struct xenbus_device *dev,
if (ret < 0) if (ret < 0)
val = 0; val = 0;
if (val) { if (val) {
ret = xenbus_printf(XBT_NIL, info->xbdev->nodename, ret = xenbus_write(XBT_NIL, info->xbdev->nodename,
"request-abs-pointer", "1"); "request-abs-pointer", "1");
if (ret) if (ret)
pr_warning("xenkbd: can't request abs-pointer"); pr_warning("xenkbd: can't request abs-pointer");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment