rtc: ds1307: Fix wday settings for rx8130
authorNobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Tue, 20 Apr 2021 02:39:17 +0000 (11:39 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 May 2021 08:57:38 +0000 (10:57 +0200)
commit2e6bd9b0fd38feff1d0944a517656528803e0116
treeed83fdc30d56dcc066b18faef6bb896e9c1387f5
parent0e2899986607a9f6f7bfeadb375d5a30060916e0
rtc: ds1307: Fix wday settings for rx8130

[ Upstream commit 204756f016726a380bafe619438ed979088bd04a ]

rx8130 wday specifies the bit position, not BCD.

Fixes: ee0981be7704 ("rtc: ds1307: Add support for Epson RX8130CE")
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210420023917.1949066-1-nobuhiro1.iwamatsu@toshiba.co.jp
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-ds1307.c