xen: make use of xenbus_read_unsigned() in xen-kbdfront
authorJuergen Gross <jgross@suse.com>
Mon, 31 Oct 2016 13:58:40 +0000 (14:58 +0100)
committerJuergen Gross <jgross@suse.com>
Mon, 7 Nov 2016 12:55:20 +0000 (13:55 +0100)
commit81362c6f159dcb59fadd60927aa00497d715ca80
tree6124e7aa9450f84b233ff3be9f043e00090d114a
parent0240933469ea4cc1aa1c32867349c4aa718fe264
xen: make use of xenbus_read_unsigned() in xen-kbdfront

Use xenbus_read_unsigned() instead of xenbus_scanf() when possible.
This requires to change the type of the reads from int to unsigned,
but these cases have been wrong before: negative values are not allowed
for the modified cases.

Cc: dmitry.torokhov@gmail.com
Cc: linux-input@vger.kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
drivers/input/misc/xen-kbdfront.c