]> git.baikalelectronics.ru Git - uboot.git/commit
rtc: s35392a: encode command correctly
authorIan Ray <ian.ray@ge.com>
Tue, 14 Jan 2020 16:18:20 +0000 (16:18 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jan 2020 00:54:20 +0000 (19:54 -0500)
commit09e6f0c784f8dd12664929572b6b570ab15ba48b
tree44d3b80a405d683f546afb95bad674e1548bf10d
parent4950776b53b092d2ea431834926234d13a0c21d8
rtc: s35392a: encode command correctly

The 3-bit "command", or register, is encoded within the device address.
Configure the device accordingly, and pass command in DM I2C read/write
calls correctly.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
drivers/rtc/s35392a.c