rtc: m41t80: replace i2c functions for smbus ones
authorMylène Josserand <mylene.josserand@free-electrons.com>
Tue, 29 Mar 2016 06:56:00 +0000 (08:56 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 20 May 2016 10:33:51 +0000 (12:33 +0200)
commitf2b84ee88d367dd563c25b6900da279ab2ffa3ea
tree3ddfdc3447d67dda3a9d1de8fba700bde3d3eb13
parentca91607fe76cc34b54957f5963f7102b37b861dd
rtc: m41t80: replace i2c functions for smbus ones

The driver used i2c_transfer methods to read and set date/time.
The smbus methods should be used.

This commit replaces i2c_transfer functions by i2c_smbus_XX_i2c_block_data
for reading and setting the datetime.

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-m41t80.c