linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/2] hwmon: pwm-fan: Add optional regulator support
@ 2019-02-22 13:45 Stefan Wahren
  2019-02-22 13:45 ` [PATCH V3 1/2] dt-bindings: hwmon: Add optional regulator support to pwm-fan Stefan Wahren
  2019-02-22 13:45 ` [PATCH V3 2/2] hwmon: pwm-fan: Add optional regulator support Stefan Wahren
  0 siblings, 2 replies; 5+ messages in thread
From: Stefan Wahren @ 2019-02-22 13:45 UTC (permalink / raw)
  To: Kamil Debski, Bartlomiej Zolnierkiewicz, Jean Delvare,
	Guenter Roeck, Rob Herring, Mark Rutland
  Cc: linux-hwmon, devicetree, linux-kernel, Stefan Wahren

This small series implements the optional regulator support for the
pwm-fan driver.

Changes in V3:
- simplify error case in probing code
- return regulator error code in pm callbacks

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                            | 43 +++++++++++++++++++++-
 2 files changed, 45 insertions(+), 1 deletion(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-23 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-22 13:45 [PATCH V3 0/2] hwmon: pwm-fan: Add optional regulator support Stefan Wahren
2019-02-22 13:45 ` [PATCH V3 1/2] dt-bindings: hwmon: Add optional regulator support to pwm-fan Stefan Wahren
2019-02-23 17:02   ` Guenter Roeck
2019-02-22 13:45 ` [PATCH V3 2/2] hwmon: pwm-fan: Add optional regulator support Stefan Wahren
2019-02-23 17:03   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).