hwmon: raspberrypi: Prevent voltage low warnings from filling log
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 6 Oct 2018 14:46:18 +0000 (16:46 +0200)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:12:55 +0000 (19:12 +0000)
commit96853a73f554e7ca8e80756e2e646a0ca6293b14
tree4cc30132dc32aaf432224c620be3ac9870c3efc5
parentef7b2ef90d1361cd02e3d6f49e520e2e6d72de54
hwmon: raspberrypi: Prevent voltage low warnings from filling log

Although the correct fix for low voltage warnings is to
improve the power supply, the current implementation
of the detection can fill the log if the warning
happens freqently. This replaces the logging with
slightly custom ratelimited logging.

Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
drivers/hwmon/raspberrypi-hwmon.c