summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-v3020.c
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2015-08-05 20:13:02 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-05 13:19:10 +0200
commit99be3e371b2ac03b936044139be10cf0c7b9cc58 (patch)
tree1597cb6f031aea7ee7ed3a6a080f394aa6164590 /drivers/rtc/rtc-v3020.c
parentrtc: ds1742: clean up ds1742_nvram_read()/ds1742_nvram_write() (diff)
downloadlinux-99be3e371b2ac03b936044139be10cf0c7b9cc58.tar.xz
linux-99be3e371b2ac03b936044139be10cf0c7b9cc58.zip
rtc: m48t59: clean up m48t59_nvram_read()/m48t59_nvram_write()
The change removes redundant sysfs binary file boundary checks, since this task is already done on caller side in fs/sysfs/file.c Spinlock acquisition/release is moved out of the loop body to get atomic states of NVRAM reading and writing operations. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-v3020.c')
0 files changed, 0 insertions, 0 deletions