]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: fix visorchipset sysfs attribute functions
authorBenjamin Romer <benjamin.romer@unisys.com>
Fri, 25 Jul 2014 17:55:10 +0000 (13:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Jul 2014 15:57:38 +0000 (08:57 -0700)
commitb02e403fa6c629e8d405b17a1fb0b0d8fc6123dc
tree5c65b34930d18e077b7a517681f4a24c5314a708
parent4d22af89f7c9f9b907aad468205afd42ff9d5e7c
staging: unisys: fix visorchipset sysfs attribute functions

This patch cleans up the style, error handling, and string handling in the sysfs
functions recently added to visorchipset:

- Use of sscanf() was changed to type-appropriate kstrto*() functions
- error handling was simplified
- the error return value of visorchannel_write() was corrected
- switch use of driver-specific types to kernel types

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchipset/visorchipset_main.c
drivers/staging/unisys/visorutil/memregion_direct.c