mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
hwmon: Add WM835x PMIC hardware monitoring driver
This driver provides reporting of the status supply voltage rails of the WM835x series of PMICs via the hwmon API. Signed-off-by: Mark Brown <[email protected]> Acked-by: Jean Delvare <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
39b1772a24
commit
fb6c023a2b
6 changed files with 197 additions and 0 deletions
|
|
@ -1472,6 +1472,8 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq,
|
|||
&(wm8350->codec.pdev));
|
||||
wm8350_client_dev_register(wm8350, "wm8350-gpio",
|
||||
&(wm8350->gpio.pdev));
|
||||
wm8350_client_dev_register(wm8350, "wm8350-hwmon",
|
||||
&(wm8350->hwmon.pdev));
|
||||
wm8350_client_dev_register(wm8350, "wm8350-power",
|
||||
&(wm8350->power.pdev));
|
||||
wm8350_client_dev_register(wm8350, "wm8350-rtc", &(wm8350->rtc.pdev));
|
||||
|
|
@ -1498,6 +1500,7 @@ void wm8350_device_exit(struct wm8350 *wm8350)
|
|||
platform_device_unregister(wm8350->wdt.pdev);
|
||||
platform_device_unregister(wm8350->rtc.pdev);
|
||||
platform_device_unregister(wm8350->power.pdev);
|
||||
platform_device_unregister(wm8350->hwmon.pdev);
|
||||
platform_device_unregister(wm8350->gpio.pdev);
|
||||
platform_device_unregister(wm8350->codec.pdev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue