summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ds1307.c
diff options
context:
space:
mode:
authorSoeren Moch <smoch@web.de>2018-10-22 14:38:12 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-10-22 17:53:14 +0200
commit7dceef78f310f5351735060d78a1777c69606016 (patch)
treea2f7aa0fc886f8f434565a236b6300f57fc683b5 /drivers/rtc/rtc-ds1307.c
parent6f5b390b3abe690ac3875a226e96a1528647f948 (diff)
downloadlinux-7dceef78f310f5351735060d78a1777c69606016.tar.gz
linux-7dceef78f310f5351735060d78a1777c69606016.tar.bz2
linux-7dceef78f310f5351735060d78a1777c69606016.zip
rtc: ds1307: fix ds1339 wakealarm support
Commit 51ed73eb998a1c79a2b0e9bed68f75a8a2c93b9b ("rtc: ds1340: Add support for trickle charger.") breaks ds1339 wakealarm support by limiting accessible registers. Fix this. Fixes: 51ed73eb998a ("rtc: ds1340: Add support for trickle charger.") Cc: stable@vger.kernel.org Signed-off-by: Soeren Moch <smoch@web.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1307.c')
-rw-r--r--drivers/rtc/rtc-ds1307.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index 982503a168d0..74b31dce484f 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -1524,7 +1524,6 @@ static void ds1307_clks_register(struct ds1307 *ds1307)
static const struct regmap_config regmap_config = {
.reg_bits = 8,
.val_bits = 8,
- .max_register = 0x9,
};
static int ds1307_probe(struct i2c_client *client,