Input: xen-kbdfront - prefer xenbus_write() over xenbus_printf() where possible
... as being the simpler variant. Signed-off-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Родитель
83510e5f57
Коммит
cd6763be8f
|
@ -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");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче