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>
Mon, 13 May 2019 23:08:03 +0000 (00:08 +0100)
commit579941e61fbd83087ee72f123b0ce77dd70b4856
tree3d8be1029b3c6f1aa8daaeb1c9cdfc7e088207a5
parentce712d9f4aa88ac07e28632f54926e09e9397bb9
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