All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] regulator: stepping set voltage for regmap users
@ 2018-12-10 15:10 Bartosz Golaszewski
  2018-12-10 15:10 ` [PATCH 1/2] regulator: make _regulator_is_enabled() available in internal.h Bartosz Golaszewski
  2018-12-10 15:10 ` [PATCH 2/2] regulator: provide regulator_set_voltage_sel_regmap_step() helper Bartosz Golaszewski
  0 siblings, 2 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2018-12-10 15:10 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown; +Cc: linux-kernel, Bartosz Golaszewski

I'm working on a regulator driver for a PMIC whose programming manual
suggests manual ramping of the regulator output voltage one step at a
time (when the regulator is enabled).

Initially I wanted to simply put it into the driver but noticed that
some other modules (e.g. rk808) seem to be doing the same and could
potentially benefit from putting this helper into the regulator core
code.

The first patch makes _regulator_is_enabled() available to regulator
code outside core.c. The second provides the helper described above.

If accepted this will be used in a driver submitted for review after
the 4.21 merge window.

Bartosz Golaszewski (2):
  regulator: make _regulator_is_enabled() available in internal.h
  regulator: provide regulator_set_voltage_sel_regmap_step() helper

 drivers/regulator/core.c         |  3 +-
 drivers/regulator/helpers.c      | 48 ++++++++++++++++++++++++++++++++
 drivers/regulator/internal.h     |  1 +
 include/linux/regulator/driver.h |  2 ++
 4 files changed, 52 insertions(+), 2 deletions(-)

-- 
2.19.1


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

end of thread, other threads:[~2018-12-11 10:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-10 15:10 [PATCH 0/2] regulator: stepping set voltage for regmap users Bartosz Golaszewski
2018-12-10 15:10 ` [PATCH 1/2] regulator: make _regulator_is_enabled() available in internal.h Bartosz Golaszewski
2018-12-10 15:10 ` [PATCH 2/2] regulator: provide regulator_set_voltage_sel_regmap_step() helper Bartosz Golaszewski
2018-12-10 15:41   ` Mark Brown
2018-12-11 10:55     ` Bartosz Golaszewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.