rtc: switch wakealarm attribute to DEVICE_ATTR_RW
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 23 Jul 2015 23:01:07 +0000 (16:01 -0700)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:07 +0000 (13:19 +0200)
commita17ccd1c6a327e5b468358e8352a6af004261473
treeba35a70e7909a61d0b075d0e34ede51f9d8b189e
parentdf100c017ea9f1a6a517c3fba84f8507973c004e
rtc: switch wakealarm attribute to DEVICE_ATTR_RW

Instead of using older style DEVICE_ATTR for wakealarm attribute let's
switch to using DEVICE_ATTR_RW that ensures consistent across the kernel
permissions on the attribute.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-sysfs.c