08 Sep, 2020

1 commit

  • regulator_notifier_call_chain() doesn't need rdev lock and rdev's
    existence is assumed in the code anyway. Remove the locks from drivers.

    Signed-off-by: Michał Mirosław
    Acked-by: Adam Thomson
    Reviewed-by: Dmitry Osipenko
    Link: https://lore.kernel.org/r/42393f66dcc4d80dcd9797be45216b4035aa96cb.1597032945.git.mirq-linux@rere.qmqm.pl
    Signed-off-by: Mark Brown

    Michał Mirosław
     

03 May, 2019

1 commit


13 Mar, 2019

1 commit

  • The mutex for the regulator_dev must be controlled by the caller of
    the regulator_notifier_call_chain(), as described in the comment
    for that function.

    Failure to mutex lock and unlock surrounding the notifier call results
    in a kernel WARN_ON_ONCE() which will dump a backtrace for the
    regulator_notifier_call_chain() when that function call is first made.
    The mutex can be controlled using the regulator_lock/unlock() API.

    Fixes: 99cf3af5e2d5 ("regulator: pv88080: new regulator driver")
    Suggested-by: Adam Thomson
    Signed-off-by: Steve Twiss
    Signed-off-by: Mark Brown

    Steve Twiss
     

04 Mar, 2019

1 commit


19 Feb, 2019

1 commit


01 Feb, 2017

1 commit

  • Declare regulator_ops structure as const as it is only stored in the ops
    field of a regulator_desc structure. This field is of type const, so
    regulator_ops structures having this property can be made const too.

    File size before: drivers/regulator/pv88080-regulator.o
    text data bss dec hex filename
    3828 1808 8 5644 160c regulator/pv88080-regulator.o

    File size after: drivers/regulator/pv88080-regulator.o
    text data bss dec hex filename
    4340 1296 8 5644 160c regulator/pv88080-regulator.o

    Signed-off-by: Bhumika Goyal
    Signed-off-by: Mark Brown

    Bhumika Goyal
     

26 Sep, 2016

1 commit

  • Three files are modified, the driver, header file and the binding document.

    Updates for the regulator source file include and .of_match_table entry
    and node match checking in the probe() function for a compatible pv88080
    silicon type. A new "HVBUCK" is added in source file and added
    regsiter definition in header file for pv88080 bb silicion.
    The binding documentation changes have been made to reflect these updates.

    Signed-off-by: Eric Jeong
    Signed-off-by: Mark Brown

    Eric Jeong
     

30 May, 2016

1 commit


19 Apr, 2016

1 commit