staging: greybus: firmware: Convert sscanf calls to strtoul
authorMichael Sartain <mikesart@fastmail.com>
Thu, 9 Mar 2017 16:58:06 +0000 (09:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 18:29:50 +0000 (19:29 +0100)
commit4da14d5922e99dbbd609a85b18f84c32d1c27a57
treece8c2a4dc39dfc893ec9ef7782056cd8a5c3df6d
parentafb5fdfc12acfda45b1486abdbb595bcb6d57cc0
staging: greybus: firmware: Convert sscanf calls to strtoul

Also convert the fw_update_type and fw_timeout variables to
unsigned and update the printf specifier to %u.

The FW_MGMT_IOC_SET_TIMEOUT_MS ioctl takes an unsigned int
and checkpatch was complaining about not checking the sscanf
return values.

Signed-off-by: Michael Sartain <mikesart@fastmail.com>
Acked-by: Viresh Kumar <viresh.kumar at linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/Documentation/firmware/firmware.c