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
03 May, 2019
1 commit
-
Convert Powerventure Semiconductor PV88060/PV88080/PV88090 regulator
drivers to SPDX identifier.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
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
04 Mar, 2019
1 commit
-
Use regulator_set/get_current_limit_regmap helpers to save some code.
Signed-off-by: Axel Lin
Acked-by: Steve Twiss
Signed-off-by: Mark Brown
19 Feb, 2019
1 commit
-
Fix off-by-one while iterating current_limits array.
The valid index should be 0 ~ n_current_limits -1.Fixes: 99cf3af5e2d5 ("regulator: pv88080: new regulator driver")
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
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.oFile size after: drivers/regulator/pv88080-regulator.o
text data bss dec hex filename
4340 1296 8 5644 160c regulator/pv88080-regulator.oSigned-off-by: Bhumika Goyal
Signed-off-by: Mark Brown
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
30 May, 2016
1 commit
-
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
19 Apr, 2016
1 commit
-
This is the driver for the Powerventure PV88080 BUCKs regulator.
It communicates via an I2C bus to the device.Signed-off-by: James Ban
Signed-off-by: Mark Brown