diff options
author | 2022-02-23 18:59:03 +0100 | |
---|---|---|
committer | 2022-03-07 13:54:32 +0000 | |
commit | 3e2e90fefc9bc6f81a477d35db5e3be1bcb9e62d (patch) | |
tree | acb87aaac2dfba9d9bfdbf2cf80abe23ac4fdd0a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rtc: max77686: Rename day-of-month defines (diff) | |
download | wireguard-linux-3e2e90fefc9bc6f81a477d35db5e3be1bcb9e62d.tar.xz wireguard-linux-3e2e90fefc9bc6f81a477d35db5e3be1bcb9e62d.zip |
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 <luca@lucaceresoli.net>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions