Input: xen-kbdfront - prefer xenbus_write() over xenbus_printf() where possible
authorJan Beulich <JBeulich@suse.com>
Sat, 9 Jul 2016 00:35:30 +0000 (17:35 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 14 Jul 2016 00:27:24 +0000 (17:27 -0700)
... as being the simpler variant.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/xen-kbdfront.c

index 0a9ad2cfb55c7fb53e39ef84e366668f5c531094..227fbd2dbb71c2d6350773d78fb1be93103673f9 100644 (file)
@@ -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)
                abs = 0;
        if (abs) {
-               ret = xenbus_printf(XBT_NIL, dev->nodename,
-                                   "request-abs-pointer", "1");
+               ret = xenbus_write(XBT_NIL, dev->nodename,
+                                  "request-abs-pointer", "1");
                if (ret) {
                        pr_warning("xenkbd: can't request abs-pointer");
                        abs = 0;
@@ -327,8 +327,8 @@ InitWait:
                if (ret < 0)
                        val = 0;
                if (val) {
-                       ret = xenbus_printf(XBT_NIL, info->xbdev->nodename,
-                                           "request-abs-pointer", "1");
+                       ret = xenbus_write(XBT_NIL, info->xbdev->nodename,
+                                          "request-abs-pointer", "1");
                        if (ret)
                                pr_warning("xenkbd: can't request abs-pointer");
                }