summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorNicolas Boullis <nboullis@debian.org>2016-04-03 00:10:37 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-05-20 12:33:51 +0200
commit1d87951c398e35118a0fb67b287022f008513f42 (patch)
tree02cef74b3ee4188f0602a880bcdc2fbb2301dc57 /samples
parentef50f86e15f2516658f0badd7890292d7a685106 (diff)
downloadop-kernel-dev-1d87951c398e35118a0fb67b287022f008513f42.zip
op-kernel-dev-1d87951c398e35118a0fb67b287022f008513f42.tar.gz
rtc: ds1307: fix ds1307_native_smbus_read_block_data function
The i2c_smbus_read_i2c_block_data function returns 0 on success, not the number of bytes written. Hence, when there are 32 bytes or less to send, the ds1307_native_smbus_write_block_data function returns 0 on success, while it returns the number of bytes when there are more than 32. The ds1307_write_block_data always returns the number of bytes on success. Signed-off-by: Nicolas Boullis <nboullis@debian.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud