]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rx8025: cleanup accessors
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 3 Aug 2015 22:40:25 +0000 (00:40 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:12 +0000 (13:19 +0200)
commit1b044b8d34576501b30f7fa6ae332ab8c9c6c5c1
tree4aeb266f1a720800ab3b37a6c156e0f62caadec7
parent1f67c99b0ba29a4fc7d1088555ba95dff8852125
rtc: rx8025: cleanup accessors

Remove useless error messages, at that point, the user already knows
something went wrong but will not be able to do anything about it anyway.
It is also highly unlikely that some registers are readable/writable
but not some other ones.

Also, transform rx8025_read_reg to be more resemblant to
i2c_smbus_read_byte_data()

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-rx8025.c