rtc: cpcap: fix range
authorSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 29 Jun 2020 11:41:23 +0000 (13:41 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 2 Jul 2020 20:32:00 +0000 (22:32 +0200)
commit3180cfabf6fbf982ca6d1a6eb56334647cc1416b
treea1392a2b7b08a39690f08ab8979752a01c95c02d
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
rtc: cpcap: fix range

Unbreak CPCAP driver, which has one more bit in the day counter
increasing the max. range from 2014 to 2058. The original commit
introducing the range limit was obviously wrong, since the driver
has only been written in 2017 (3 years after 14 bits would have
run out).

Fixes: d2377f8cc5a7 ("rtc: cpcap: set range")
Reported-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Reported-by: Dev Null <devnull@uvos.xyz>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Tested-by: Merlijn Wajer <merlijn@wizzup.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Merlijn Wajer <merlijn@wizzup.org>
Link: https://lore.kernel.org/r/20200629114123.27956-1-sebastian.reichel@collabora.com
drivers/rtc/rtc-cpcap.c