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)
commite1d26a7642253a4b745a69c5faef494dd0b5c01a
tree44d3b80a405d683f546afb95bad674e1548bf10d
parent2d7818d04ff29581f497b70c8bd903516a179e9d
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