lkml.org 
[lkml]   [2018]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/2] regulator: stepping set voltage for regmap users
    Date
    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

    \
     
     \ /
      Last update: 2018-12-10 16:11    [W:5.571 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site