mbox series

[V2,0/2] hwmon: pwm-fan: Add optional regulator support

Message ID 1549557480-14436-1-git-send-email-stefan.wahren@i2se.com (mailing list archive)
Headers show
Series hwmon: pwm-fan: Add optional regulator support | expand

Message

Stefan Wahren Feb. 7, 2019, 4:37 p.m. UTC
This small series implements the optional regulator support for the
pwm-fan driver.

Changes in V2:
- address Guenter's comments:
  - handle error case first
  - drop ENOSYS handling
  - implement more consistent bail out handling
- enable regulator before setup PWM
- make sure we disable regulator if probe fails

Stefan Wahren (2):
  dt-bindings: hwmon: Add optional regulator support to pwm-fan
  hwmon: pwm-fan: Add optional regulator support

 .../devicetree/bindings/hwmon/pwm-fan.txt          |  3 ++
 drivers/hwmon/pwm-fan.c                            | 39 +++++++++++++++++++++-
 2 files changed, 41 insertions(+), 1 deletion(-)