xen: introduce xenbus_read_unsigned()
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:02 +0000 (13:55 +0100)
commit9c53a1792a5e6c708897d0cb17f2a4509e499a52
tree48de24da67c301fcd0eed7cf3af4c2af837e3ba7
parentbc33b0ca11e3df467777a4fa7639ba488c9d4911
xen: introduce xenbus_read_unsigned()

There are multiple instances of code reading an optional unsigned
parameter from Xenstore via xenbus_scanf(). Instead of repeating the
same code over and over add a service function doing the job.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xenbus/xenbus_xs.c
include/xen/xenbus.h