regulator (max5970): Add hwmon support
authorNaresh Solanki <naresh.solanki@9elements.com>
Fri, 27 Oct 2023 15:28:28 +0000 (15:28 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 27 Oct 2023 16:37:36 +0000 (17:37 +0100)
commitf5afdd13ed6c643c7243e685fe3cf5484b3fdfae
tree14e6f1f9be6c48cea728c5180f8f0d118afa0980
parentae61939cdf378ae3acc5716ccb43fef3cdace36e
regulator (max5970): Add hwmon support

Utilize the integrated 10-bit ADC in Max5970/Max5978 to enable voltage
and current monitoring. This feature is seamlessly integrated through
the hwmon subsystem.

Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231027152830.1269895-1-naresh.solanki@9elements.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max5970-regulator.c