diff options
author | Luca Ceresoli <[email protected]> | 2022-02-23 18:59:03 +0100 |
---|---|---|
committer | Lee Jones <[email protected]> | 2022-03-07 13:54:32 +0000 |
commit | 3e2e90fefc9bc6f81a477d35db5e3be1bcb9e62d (patch) | |
tree | acb87aaac2dfba9d9bfdbf2cf80abe23ac4fdd0a /scripts/gcc-plugins | |
parent | a26d84633c2ba3c41fd7692986fb2231c9228c4e (diff) |
rtc: max77686: Remove unused code to read in 12-hour mode
The MAX77714 RTC chip is explicitly set to 24-hour mode in
max77686_rtc_probe() -> max77686_rtc_init_reg() and never changed back to
12-hour mode. Accordingly info->rtc_24hr_mode is set to 1 in the same place
and never modified later, so it is de facto a constant. Yet there is code
to read 12-hour time, which is unreachable.
Remove the unused variable, the unreachable code to manage 12-hour mode and
the defines that become unused due to the above changes.
Signed-off-by: Luca Ceresoli <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Alexandre Belloni <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions