summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-mt6397.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-07-23 16:01:08 -0700
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-05 13:19:07 +0200
commit3ee2c40b7ac2bf121aaa1176d8ac25b6a26e3a94 (patch)
treeefe5e8ee4667aa49c34f1ef2653067206297f2da /drivers/rtc/rtc-mt6397.c
parenta17ccd1c6a327e5b468358e8352a6af004261473 (diff)
downloadlinux-stable-3ee2c40b7ac2bf121aaa1176d8ac25b6a26e3a94.tar.gz
linux-stable-3ee2c40b7ac2bf121aaa1176d8ac25b6a26e3a94.tar.bz2
linux-stable-3ee2c40b7ac2bf121aaa1176d8ac25b6a26e3a94.zip
rtc: switch to using is_visible() to control sysfs attributes
Instead of creating wakealarm attribute manually, after the device has been registered, let's rely on facilities provided by the attribute groups to control which attributes are visible and which are not. This allows to create all needed attributes at once, at the same time that we register RTC class device. 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>
Diffstat (limited to 'drivers/rtc/rtc-mt6397.c')
0 files changed, 0 insertions, 0 deletions