Kars de Jong e34494c8df rtc: msm6242: Fix reading of 10-hour digit
The driver was reading the wrong register as the 10-hour digit due to
a misplaced ')'. It was in fact reading the 1-second digit register due
to this bug.

Also remove the use of a magic number for the hour mask and use the define
for it which was already present.

Fixes: 4f9b9bba1dd1 ("rtc: Add an RTC driver for the Oki MSM6242")
Tested-by: Kars de Jong <jongk@linux-m68k.org>
Signed-off-by: Kars de Jong <jongk@linux-m68k.org>
Link: https://lore.kernel.org/r/20191116110548.8562-1-jongk@linux-m68k.org
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2019-11-18 15:20:20 +01:00
..
2019-07-17 10:03:50 -07:00
2019-10-19 22:56:11 +02:00
2019-11-08 16:14:09 +01:00
2019-07-17 10:03:50 -07:00
2019-11-08 16:14:09 +01:00
2019-10-07 15:49:16 +02:00
2019-04-16 18:06:54 +02:00
2019-04-04 10:07:10 +02:00
2019-10-19 23:16:57 +02:00
2019-07-17 10:03:50 -07:00
2019-07-17 10:03:50 -07:00
2019-10-19 22:33:05 +02:00
2019-11-08 16:14:09 +01:00
2019-05-09 14:46:33 -07:00
2019-11-08 16:14:09 +01:00
2019-09-22 11:05:43 -07:00
2019-05-23 17:44:52 +02:00
2019-05-08 22:14:36 +02:00