gpio: sysfs: use DEVICE_ATTR macros
authorJohan Hovold <johan@kernel.org>
Mon, 4 May 2015 15:10:34 +0000 (17:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 08:46:59 +0000 (10:46 +0200)
commit6beac9d1aa9bf104b01816852131fa175c0a178b
treea07f56687a9e64e6b8e715cffc29207fee5c3156
parent166a85e44245d771bd7042f3ad72aa0e12bb53bd
gpio: sysfs: use DEVICE_ATTR macros

Use DEVICE_ATTR_RO and DEVICE_ATTR_RW rather than specifying masks and
callbacks directly.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c