[PATCH RFT 2/2] regulator: mc13892: Convert mc13892_sw_regulator_ops to get_voltage_sel

2012-07-19 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/mc13892-regulator.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c index 60195b3..662b1d5 100644 --- a/drivers/regulator/mc13892

[PATCH] regulator: mc13xxx: Remove extern function declaration for mc13xxx_sw_regulator

2012-07-19 Thread Axel Lin
This function does not exist, remove the extern function declaration. Signed-off-by: Axel Lin --- drivers/regulator/mc13xxx.h |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/regulator/mc13xxx.h b/drivers/regulator/mc13xxx.h index 8343a25..eaff551 100644 --- a/drivers/regulator

[PATCH] regulator: lp8788-ldo: Set n_voltages to 1 for fixed voltage

2012-07-20 Thread Axel Lin
For fixed voltage, the n_voltages should be 1 rather than 0. Signed-off-by: Axel Lin --- drivers/regulator/lp8788-ldo.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/regulator/lp8788-ldo.c b/drivers/regulator/lp8788-ldo.c index d2122e4..6796eeb 100644 --- a/drivers

[PATCH] regulator: lp8788-buck: Remove lp8788_set_default_dvs_ctrl_mode function

2012-07-20 Thread Axel Lin
We already know the mask in lp8788_init_dvs() function, and we can update the corresponding bit for default_dvs_mode in lp8788_init_dvs() function. This function looks not necessary to me. Signed-off-by: Axel Lin --- drivers/regulator/lp8788-buck.c | 25 +++-- 1 file

[PATCH] regulator: Use BUCK_FPWM_[MASK|SHIFT] macros to replace buck_pmap table

2012-07-20 Thread Axel Lin
= BUCK_ID This patch defines BUCK_FPWM_MASK and BUCK_FPWM_SHIFT macros to replace buck_pmap mapping table. Signed-off-by: Axel Lin --- drivers/regulator/lp8788-buck.c | 55 +-- 1 file changed, 12 insertions(+), 43 deletions(-) diff --git a/drivers/reg

Re: [PATCH 2/2] pinctrl: mediatek: Fix pinctrl register irq fail bug.

2015-05-27 Thread Axel Lin
etter for this case. > So using of_property_read_bool instead of of_find_property. > > Also fix bug of misuse pointer. > > Signed-off-by: Hongzhou Yang Reviewed-by: Axel Lin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

[PATCH] regulator: qcom_spmi: Fix missing parenthesis

2015-06-16 Thread Axel Lin
Fix the logic in spmi_regulator_common_list_voltage() to return correct uV. Signed-off-by: Axel Lin --- drivers/regulator/qcom_spmi-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi

[PATCH] regulator: qcom_spmi: Fix calculating number of voltages

2015-06-17 Thread Axel Lin
n /= range->step_uV + 1; is equivalent to n /= (range->step_uV + 1); which is wrong. Fix it. Signed-off-by: Axel Lin --- drivers/regulator/qcom_spmi-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/reg

[PATCH] block: partition-generic: Catch alloc_part_info failure

2015-06-22 Thread Axel Lin
Make add_partition() return proper ERR_PTR if alloc_part_info() fails. This ensures the caller of add_partition() can catch the error by IS_ERROR macro. Signed-off-by: Axel Lin --- block/partition-generic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/block/partition

[PATCH] phy: ulpi_phy: Add const qualifier to ops

2015-06-04 Thread Axel Lin
The ops is never changed in ulpi_phy_create(), so make it const. Signed-off-by: Axel Lin --- drivers/phy/ulpi_phy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/ulpi_phy.h b/drivers/phy/ulpi_phy.h index ac49fb6..f2ebe49 100644 --- a/drivers/phy/ulpi_phy.h

[PATCH] irqchip: sunxi-nmi: Fix off-by-one for iterating over gc->num_ct

2015-06-07 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/irqchip/irq-sunxi-nmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-sunxi-nmi.c b/drivers/irqchip/irq-sunxi-nmi.c index 12f547a..eb9b59e 100644 --- a/drivers/irqchip/irq-sunxi-nmi.c +++ b/drivers/irqchip/irq-sunxi

[PATCH] regulator: da9063: Fix up irq leak

2015-05-30 Thread Axel Lin
get_irq_byname fails. But current code does not allow platform_get_irq_byname fails. So I think the reason to allow request irq failure is just because the irq leak. Signed-off-by: Axel Lin --- drivers/regulator/da9063-regulator.c | 21 +++-- 1 file changed, 3 insertions(+)

[PATCH] regulator: lp8755: Convert to devm_request_threaded_irq

2015-05-30 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/lp8755.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/drivers/regulator/lp8755.c b/drivers/regulator/lp8755.c index 4a415d4..d6773da 100644 --- a/drivers/regulator/lp8755.c +++ b/drivers/regulator

[PATCH] phy: tusb1210: Use devm_gpiod_get_optional for optional GPIOs

2015-05-31 Thread Axel Lin
Also simplify the code a bit by specify direction and initial value for output in devm_gpiod_get_optional function. Signed-off-by: Axel Lin --- drivers/phy/phy-tusb1210.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/drivers/phy/phy-tusb1210

[PATCH] regulator: max8973: Fix up ramp_delay for MAX8973_RAMP_25mV_PER_US case

2015-06-10 Thread Axel Lin
Fix trivial typo. Signed-off-by: Axel Lin --- Hi Laxman, This looks like a typo, can you confirm? Thanks, Axel drivers/regulator/max8973-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max8973-regulator.c b/drivers/regulator/max8973-regulator.c

[PATCH RESEND] phy: tusb1210: Use devm_gpiod_get_optional for optional GPIOs

2015-06-20 Thread Axel Lin
Also simplify the code a bit by specify direction and initial value for output in devm_gpiod_get_optional function. Signed-off-by: Axel Lin Acked-by: Heikki Krogerus Acked-by: Kishon Vijay Abraham I --- Hi This patch was sent on https://lkml.org/lkml/2015/5/31/221 with ACKs. It's still n

[PATCH] block: nvme-scsi: Catch kcalloc failure

2015-06-20 Thread Axel Lin
res variable was initialized to -ENOMEM, but it's override by nvme_trans_copy_from_user(). So current code returns 0 if kcalloc fails. Fix it to return proper error code. Signed-off-by: Axel Lin --- drivers/block/nvme-scsi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

[PATCH] block: blk-flush: Check return value of bio_alloc()

2015-06-21 Thread Axel Lin
bio_alloc() can return NULL, so add NULL test to prevent NULL pointer dereference. Signed-off-by: Axel Lin --- block/blk-flush.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block/blk-flush.c b/block/blk-flush.c index 20badd7..4706641 100644 --- a/block/blk-flush.c +++ b/block/blk

[PATCH 00/11] regulator: Add set/get_current_limit helpers and use it

2019-02-28 Thread Axel Lin
regulator_set_current_limit_regmap() and regulator_get_current_limit_regmap() patch 3-11 convert drivers to use regulator_set/get_current_limit_regmap helpers I don't have h/w for these drivers, so please test it. Axel Lin (11): regulator: Fix comment for csel_reg and csel

[PATCH 01/11] regulator: Fix comment for csel_reg and csel_mask

2019-02-28 Thread Axel Lin
The csel_reg and csel_mask fields in struct regulator_desc needs to be generic for drivers. Not just for TPS65218. Signed-off-by: Axel Lin --- include/linux/regulator/driver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/regulator/driver.h b/include

[PATCH 05/11] regulator: lp872x: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/lp872x.c | 70 ++ 1 file changed, 10 insertions(+), 60 deletions(-) diff --git a/drivers/regulator/lp872x.c b/drivers/regulator/lp872x.c index

[PATCH 02/11] regulator: core: Add set/get_current_limit helpers for regmap users

2019-02-28 Thread Axel Lin
By setting curr_table, n_current_limits, csel_reg and csel_mask, the regmap users can use regulator_set_current_limit_regmap and regulator_get_current_limit_regmap for set/get_current_limit callbacks. Signed-off-by: Axel Lin --- drivers/regulator/helpers.c | 86

[PATCH 06/11] regulator: lp873x: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/lp873x-regulator.c | 45 1 file changed, 6 insertions(+), 39 deletions(-) diff --git a/drivers/regulator/lp873x-regulator.c b/drivers/regulator

[PATCH 10/11] regulator: pv88090: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/pv88090-regulator.c | 53 --- 1 file changed, 8 insertions(+), 45 deletions(-) diff --git a/drivers/regulator/pv88090-regulator.c b/drivers/regulator

[PATCH 03/11] regulator: da9055: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/da9055-regulator.c | 45 ++-- 1 file changed, 9 insertions(+), 36 deletions(-) diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator

[PATCH 08/11] regulator: pv88060: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/pv88060-regulator.c | 51 --- 1 file changed, 7 insertions(+), 44 deletions(-) diff --git a/drivers/regulator/pv88060-regulator.c b/drivers/regulator

[PATCH 07/11] regulator: max77650: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/max77650-regulator.c | 74 +- 1 file changed, 25 insertions(+), 49 deletions(-) diff --git a/drivers/regulator/max77650-regulator.c b/drivers/regulator

[PATCH 04/11] regulator: da9210: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/da9210-regulator.c | 53 1 file changed, 7 insertions(+), 46 deletions(-) diff --git a/drivers/regulator/da9210-regulator.c b/drivers/regulator

[PATCH 09/11] regulator: pv88080: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/pv88080-regulator.c | 55 --- 1 file changed, 8 insertions(+), 47 deletions(-) diff --git a/drivers/regulator/pv88080-regulator.c b/drivers/regulator

[PATCH 11/11] regulator: wm831x-dcdc: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/wm831x-dcdc.c | 42 + 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x

[PATCH RFT] regulator: lp87565: Fix missing register for LP87565_BUCK_0

2019-02-28 Thread Axel Lin
LP87565_BUCK_0 is missed, fix it. Fixes: f0168a9bf ("regulator: lp87565: Add support for lp87565 PMIC regulators") Signed-off-by: Axel Lin --- Hi J Keerthy, While reading the code, it seems strange that LP87565_BUCK_0 is never used. So current code only register 3 BUCKs for lp87565

[PATCH] regulator: lp87565: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/lp87565-regulator.c | 47 --- 1 file changed, 7 insertions(+), 40 deletions(-) diff --git a/drivers/regulator/lp87565-regulator.c b/drivers/regulator

[PATCH] regulator: palmas: Constify palmas_smps_ramp_delay array

2019-03-01 Thread Axel Lin
The palmas_smps_ramp_delay array should never modify, make it const. Signed-off-by: Axel Lin --- drivers/regulator/palmas-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index

[PATCH] regulator: mc13xxx: Constify regulator_ops variables

2019-03-01 Thread Axel Lin
These regulator_ops variables should never change, make them const. Signed-off-by: Axel Lin --- drivers/regulator/mc13783-regulator.c | 4 ++-- drivers/regulator/mc13892-regulator.c | 8 drivers/regulator/mc13xxx-regulator-core.c | 4 ++-- drivers/regulator/mc13xxx.h

Re: [PATCH] regulator: lp87565: Convert to use regulator_set/get_current_limit_regmap

2019-03-01 Thread Axel Lin
kbuild test robot 於 2019年3月1日 週五 下午7:32寫道: > > Hi Axel, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on regulator/for-next] > [also build test ERROR on next-20190228] > [cannot apply to v5.0-rc8] > [if your patch is applied to the wrong git tree, please drop us

[PATCH 3/3] regulator: tps80031: Switch to SPDX identifier

2019-04-16 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/tps80031-regulator.c | 34 -- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c index 8e65a13e2ef5..85a6a8ca8c1b 100644 --- a

[PATCH 2/3] regulator: tps80031: Constify regulator_ops and tps80031_dcdc_voltages array

2019-04-16 Thread Axel Lin
These regulator_ops variables and tps80031_dcdc_voltages array never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/tps80031-regulator.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a

[PATCH 1/3] regulator: tps80031: Remove unused *rdev from struct tps80031_regulator

2019-04-16 Thread Axel Lin
The ri-rdev is assigend but not used, so remove it. Signed-off-by: Axel Lin --- drivers/regulator/tps80031-regulator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c index 1001147404c3..d97cd55b6850 100644

[PATCH] regulator: stm32-pwr: Staticize local symbols

2019-04-17 Thread Axel Lin
These symbols are only used by this driver, make them static. Signed-off-by: Axel Lin --- drivers/regulator/stm32-pwr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c index e434b26d4c8b..222d593d76a2 100644

[PATCH] regulator: stm32-pwr: Fix error checking for of_iomap

2019-04-17 Thread Axel Lin
of_iomap returns NULL on error. Signed-off-by: Axel Lin --- drivers/regulator/stm32-pwr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c index 222d593d76a2..dd5c2b383e5b 100644 --- a/drivers/regulator/stm32

[PATCH 1/5] regulator: arizona: Switch to SPDX identifier

2019-04-17 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/arizona-ldo1.c| 19 +++ drivers/regulator/arizona-micsupp.c | 19 +++ 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c index

[PATCH 5/5] regulator: wm8994: Switch to SPDX identifier

2019-04-17 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/wm8994-regulator.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/regulator/wm8994-regulator.c b/drivers/regulator/wm8994-regulator.c index 38928cdcb6e6..cadea0344486 100644 --- a/drivers/regulator

[PATCH 2/5] regulator: wm831x: Switch to SPDX identifier

2019-04-17 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/wm831x-dcdc.c | 19 +++ drivers/regulator/wm831x-isink.c | 19 +++ drivers/regulator/wm831x-ldo.c | 19 +++ 3 files changed, 21 insertions(+), 36 deletions(-) diff --git a/drivers/regulator/wm831x

[PATCH 4/5] regulator: wm8400: Switch to SPDX identifier

2019-04-17 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/wm8400-regulator.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/regulator/wm8400-regulator.c b/drivers/regulator/wm8400-regulator.c index 5ce86b92851b..6f331b51e479 100644 --- a/drivers/regulator

[PATCH 3/5] regulator: wm8350: Switch to SPDX identifier

2019-04-17 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/wm8350-regulator.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c index 0eb3f3a33caa..56d6168a888d 100644 --- a/drivers/regulator

[PATCH 2/3] regulator: ltc3589: Get rid of struct ltc3589_regulator

2019-04-18 Thread Axel Lin
After converting to use simplified DT parsing, the struct ltc3589_regulator only has a desc member. So let's remove struct ltc3589_regulator and use struct regulator_desc instead. Signed-off-by: Axel Lin --- drivers/regulator/ltc3589.c | 69 + 1 file ch

[PATCH 3/3] regulator: ltc3589: Switch to SPDX identifier

2019-04-18 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/ltc3589.c | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c index 077e73715514..9a037fdc5fc5 100644 --- a/drivers/regulator/ltc3589.c +++ b/drivers

[PATCH 1/3] regulator: ltc3589: Convert to use simplified DT parsing

2019-04-18 Thread Axel Lin
Use regulator core's simplified DT parsing code to simplify the driver implementation. Signed-off-by: Axel Lin --- drivers/regulator/ltc3589.c | 194 +++- 1 file changed, 58 insertions(+), 136 deletions(-) diff --git a/drivers/regulator/ltc3589.c b/dr

regulator: Several commits are disappear in regulator tree

2019-04-25 Thread Axel Lin
Hi Mark, I found the commits between 2019-04-10 ~ 2019-04-17 are disappear since linux-next 20190424: linux-next 20190418: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/drivers/regulator?h=next-20190418 linux-next 20190424: https://git.kernel.org/pub/scm/linux/kernel/gi

[PATCH 1/2] regulator: da9052: Convert to regulator core's simplified DT parsing code

2019-03-12 Thread Axel Lin
Use regulator core's simplified DT parsing code to simply the driver implementation. Signed-off-by: Axel Lin --- Hi, I don't have this h/w, so please help testing it. Thanks, Axel drivers/regulator/da9052-regulator.c | 33 +--- 1 file changed, 6 inserti

[PATCH 2/2] regulator: da9055: Convert to regulator core's simplified DT parsing code

2019-03-12 Thread Axel Lin
Use regulator core's simplified DT parsing code to simply the driver implementation. Signed-off-by: Axel Lin --- drivers/regulator/da9055-regulator.c | 67 +++- 1 file changed, 6 insertions(+), 61 deletions(-) diff --git a/drivers/regulator/da9055-regulator.c b/dr

[PATCH] regulator: max14577: Get rid of match_init_data/match_of_node functions

2019-03-12 Thread Axel Lin
This driver has been converted to use regulator core's simplified DT parsing code. So the match_init_data/match_of_node functions are not necessary now, remove them. Signed-off-by: Axel Lin --- drivers/regulator/max14577-regulator.c | 55 -- 1 file changed, 55 dele

[PATCH 4/4] regulator: wm8350: Convert to use regulator_set/get_current_limit_regmap

2019-03-12 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/wm8350-regulator.c | 81 1 file changed, 11 insertions(+), 70 deletions(-) diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator

[PATCH 2/4] regulator: wm8350: Select maximum current in specific range

2019-03-12 Thread Axel Lin
.set_current_limit callback should select the current closest to max_uA. Signed-off-by: Axel Lin --- drivers/regulator/wm8350-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c index

[PATCH 3/4] regulator: wm831x-isink: Convert to use regulator_set/get_current_limit_regmap

2019-03-12 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/mfd/wm831x-core.c| 2 +- drivers/regulator/wm831x-isink.c | 45 +--- include/linux/mfd/wm831x/regulator.h | 2 +- 3 files changed, 9 insertions

[PATCH 1/4] regulator: wm831x-isink: Select maximum current in specific range

2019-03-12 Thread Axel Lin
.set_current_limit callback should select the current closest to max_uA. Signed-off-by: Axel Lin --- drivers/regulator/wm831x-isink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/wm831x-isink.c b/drivers/regulator/wm831x-isink.c index 6dd891d7eee3

[PATCH] regulator: 88pm800: Get rid of struct pm800_regulators

2019-03-14 Thread Axel Lin
The struct pm800_regulators only has 2 members: *chip and *map. The pm800_data->chip is not used. The pm800_data->map is not necessary. Thus remove the struct pm800_regulators. Signed-off-by: Axel Lin --- drivers/regulator/88pm800.c | 18 +- 1 file changed, 1 insertion(

Re: [PATCH] regulator: axp20x: Fix incorrect vsel_mask settings

2019-02-06 Thread Axel Lin
Chen-Yu Tsai 於 2019年2月6日 週三 下午6:44寫道: > > On Mon, Jan 28, 2019 at 10:02 PM Axel Lin wrote: > > > > Fix copy-paste mistake while converting to use defines for masks. > > > > Fixes: db4a555f7c4cf ("regulator: axp20x: use defines for masks") > > Sig

[PATCH 5/8] regulator: lp8755: Constify lp8755_regulators

2019-01-25 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/lp8755.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/lp8755.c b/drivers/regulator/lp8755.c index 6d229ad4ef3e..14fd38807134 100644 --- a/drivers/regulator/lp8755.c +++ b/drivers/regulator/lp8755.c @@ -315,7

[PATCH 3/8] regulator: lp872x: Constify regulator_ops and regulator_desc

2019-01-25 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/lp872x.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/lp872x.c b/drivers/regulator/lp872x.c index 38992112fd6e..f8f875bad7dd 100644 --- a/drivers/regulator/lp872x.c +++ b/drivers/regulator

[PATCH 7/8] regulator: lp8788-buck: Constify lp8788_buck_desc

2019-01-25 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/lp8788-buck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/lp8788-buck.c b/drivers/regulator/lp8788-buck.c index ec46290b647e..30de784d8e30 100644 --- a/drivers/regulator/lp8788-buck.c +++ b/drivers/regulator

[PATCH 1/8] regulator: lp3971: Constify lp3971_ldo_ops and lp3971_dcdc_ops

2019-01-25 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/lp3971.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/lp3971.c b/drivers/regulator/lp3971.c index 204b5c5270e0..9e45112658ba 100644 --- a/drivers/regulator/lp3971.c +++ b/drivers/regulator/lp3971.c

[PATCH 8/8] regulator: lp8788-ldo: Constify lp8788_dldo_desc and lp8788_aldo_desc

2019-01-25 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/lp8788-ldo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/lp8788-ldo.c b/drivers/regulator/lp8788-ldo.c index 2ee22e7ea675..a2ef146e6b3a 100644 --- a/drivers/regulator/lp8788-ldo.c +++ b/drivers/regulator

[PATCH 4/8] regulator: lp873x: Constify lp873x_buck01_ops and lp873x_ldo01_ops

2019-01-25 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/lp873x-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/lp873x-regulator.c b/drivers/regulator/lp873x-regulator.c index 70e3df653381..2ec5e833c379 100644 --- a/drivers/regulator/lp873x-regulator.c

[PATCH 2/8] regulator: lp3972: Constify lp3972_ldo_ops and lp3972_dcdc_ops

2019-01-25 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/lp3972.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/lp3972.c b/drivers/regulator/lp3972.c index ff0c275f902e..fb098198b688 100644 --- a/drivers/regulator/lp3972.c +++ b/drivers/regulator/lp3972.c

[PATCH 6/8] regulator: lp87565: Constify lp87565_buck_ramp_delay and lp87565_buck_ops

2019-01-25 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/lp87565-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/lp87565-regulator.c b/drivers/regulator/lp87565-regulator.c index c192357d1dea..4ed41731a5b1 100644 --- a/drivers/regulator/lp87565

[PATCH 1/2] regulator: da9062: Check return value of devm_regmap_field_alloc calls

2019-01-26 Thread Axel Lin
Since devm_regmap_field_alloc can fail, add error checking for it. Signed-off-by: Axel Lin --- drivers/regulator/da9062-regulator.c | 29 +++- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/da9062-regulator.c b/drivers/regulator/da9062

[PATCH 2/2] regulator: da9063: Check return value of devm_regmap_field_alloc calls

2019-01-26 Thread Axel Lin
Since devm_regmap_field_alloc can fail, add error checking for it. Signed-off-by: Axel Lin --- drivers/regulator/da9063-regulator.c | 29 +++- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063

[PATCH] regulator: mcp16502: Include linux/gpio/consumer.h to fix build error

2019-01-27 Thread Axel Lin
quot;lpm", GPIOD_OUT_LOW); ^ GPIOF_INIT_LOW Signed-off-by: Axel Lin --- drivers/regulator/mcp16502.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/mcp16502.c b/drivers/regulator/mcp16502.c index 3479ae009b0b..0fc4

[PATCH 2/2] regulator: rk808: Update module description to include RK805

2019-01-27 Thread Axel Lin
This driver also supports RK805 now. Signed-off-by: Axel Lin --- drivers/regulator/rk808-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index c18ed632c95d..08578f6d737d 100644 --- a

[PATCH 1/2] regulator: rk808: Constify regulator_ops

2019-01-27 Thread Axel Lin
While at it, also fix indent for rk805_reg_ops and rk805_switch_ops. Signed-off-by: Axel Lin --- drivers/regulator/rk808-regulator.c | 42 ++--- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808

[PATCH] regulator: axp20x: Fix incorrect vsel_mask settings

2019-01-28 Thread Axel Lin
Fix copy-paste mistake while converting to use defines for masks. Fixes: db4a555f7c4cf ("regulator: axp20x: use defines for masks") Signed-off-by: Axel Lin --- drivers/regulator/axp20x-regulator.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH 2/2] regulator: isl6271a: Constify isl_core_ops and isl_fixed_ops

2019-01-28 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/isl6271a-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regulator/isl6271a-regulator.c index ae29c8773057..6f28bba81d13 100644 --- a/drivers/regulator/isl6271a

[PATCH 1/2] regulator: isl6271a: Remove *rdev[3] from struct isl_pmic

2019-01-28 Thread Axel Lin
This driver is using devm_regulator_register, so it's not necessary to store *rdev[3] in struct isl_pmic. Use a local variable instead. Signed-off-by: Axel Lin --- drivers/regulator/isl6271a-regulator.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dr

[PATCH 1/2] regulator: as3722: Convert to use regulator_set/get_current_limit_regmap

2019-03-26 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/as3722-regulator.c | 212 --- 1 file changed, 60 insertions(+), 152 deletions(-) diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator

[PATCH 2/2] regulator: as3722: Slightly improve readability

2019-03-26 Thread Axel Lin
Add a local variable *desc to avoid too many change lines due to over 80 characters. Signed-off-by: Axel Lin --- drivers/regulator/as3722-regulator.c | 137 --- 1 file changed, 58 insertions(+), 79 deletions(-) diff --git a/drivers/regulator/as3722-regulator.c b

Re: [PATCH] regulator: max77650: Convert MAX77651 SBB1 to pickable linear range

2019-03-27 Thread Axel Lin
> Hi, > > what tree is this patch based on, because it doesn't apply on top of v5.1-rc2. Hi Bart, You can use linux-next or regulator tree. However, due to build dependency you need to manually apply max77650 mfd drvier manually because it's not exist in these tree. Alternatively, you can check

[PATCH] regulator: rc5t583: Get rid of struct rc5t583_regulator

2019-03-27 Thread Axel Lin
The struct rc5t583_regulator only has 2 members, the *rdev is no longer used because this driver is using devm_regulator_register now. After remove *rdev, only *reg_info left. We can use struct rc5t583_regulator_info directly, so remove struct rc5t583_regulator. Signed-off-by: Axel Lin

Re: [PATCH] regulator: max77650: Convert MAX77651 SBB1 to pickable linear range

2019-03-27 Thread Axel Lin
Bartosz Golaszewski 於 2019年3月27日 週三 下午9:08寫道: > > śr., 27 mar 2019 o 11:17 Axel Lin napisał(a): > > > > > Hi, > > > > > > what tree is this patch based on, because it doesn't apply on top of > > > v5.1-rc2. > > Hi Bart, > > You

Re: [PATCH] regulator: max77650: Convert MAX77651 SBB1 to pickable linear range

2019-03-28 Thread Axel Lin
> What do you mean you don't have a public git tree? Can't you create a > gitlab account and just push the tree there? Alternatively, given the > amount of patches you send, I doubt the kernel.org maintainers would > refuse if you asked for an account. Because using linux-next tree is good enough f

[PATCH 1/3] regulator: tps6507x: Constify tps6507x_pmic_ops

2019-03-28 Thread Axel Lin
The tps6507x_pmic_ops never need to be modified, make it const so compiler can put it to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/tps6507x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator

[PATCH 3/3] regulator: tps6507x: Convert to regulator core's simplified DT parsing code

2019-03-28 Thread Axel Lin
Use regulator core's simplified DT parsing code to simply the driver implementation. Signed-off-by: Axel Lin --- drivers/regulator/tps6507x-regulator.c | 107 + 1 file changed, 19 insertions(+), 88 deletions(-) diff --git a/drivers/regulator/tps6507x-regulator

[PATCH 2/3] regulator: tps6507x: Remove unused *rdev[] from struct tps6507x_pmic

2019-03-28 Thread Axel Lin
This driver is using devm_regulator_register so no need to save *rdev for clean up. Signed-off-by: Axel Lin --- drivers/regulator/tps6507x-regulator.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c index

[PATCH 2/2] regulator: lm363x: Constify regulator_ops

2019-04-02 Thread Axel Lin
The lm363x_boost_voltage_table_ops and lm363x_regulator_voltage_table_ops never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/lm363x-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 1/2] regulator: lm363x: Use proper data type for regmap_read arguments

2019-04-02 Thread Axel Lin
regmap_read() takes unsigned int reg and unsigned int *val arguments, use proper data type for these arguments. Signed-off-by: Axel Lin --- drivers/regulator/lm363x-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/lm363x-regulator.c b

[PATCH] regulator: twl: Constify regulator_ops

2019-04-02 Thread Axel Lin
These regulator_ops variables never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/twl-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers

[PATCH 1/2] regulator: hi655x: Constify regulators array

2019-04-08 Thread Axel Lin
The regulators array should never need to be modified, make it const so compiler can put it to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/hi655x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/hi655x-regulator.c b/drivers/regulator

[PATCH 2/2] regulator: hi655x: Remove ctrl_mask field from struct hi655x_regulator

2019-04-08 Thread Axel Lin
The rdev->desc->enable_mask setting is always the same as BIT(regulator->ctrl_mask), so just use rdev->desc->enable_mask instead. Signed-off-by: Axel Lin --- drivers/regulator/hi655x-regulator.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/dr

[PATCH] regulator: s2mpa01: Remove unused define for S2MPA01_REGULATOR_CNT

2019-04-09 Thread Axel Lin
The S2MPA01_REGULATOR_CNT is no longer used after converted to use simplified DT parsing. Signed-off-by: Axel Lin --- drivers/regulator/s2mpa01.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator/s2mpa01.c b/drivers/regulator/s2mpa01.c index da11ac5c09f2..51f7e8b74d8c

[PATCH] regulator: anatop: Remove unneeded fields from struct anatop_regulator

2019-04-09 Thread Axel Lin
: Axel Lin --- drivers/regulator/anatop-regulator.c | 63 1 file changed, 27 insertions(+), 36 deletions(-) diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index d9d8155ed8cb..754739d004e5 100644 --- a/drivers/regulator/anatop

[PATCH] regulator: hi6421: Convert to use simplified DT parsing

2019-04-10 Thread Axel Lin
Use regulator core's simplified DT parsing code to simply the driver implementation. Signed-off-by: Axel Lin --- drivers/regulator/hi6421-regulator.c | 208 ++- 1 file changed, 78 insertions(+), 130 deletions(-) diff --git a/drivers/regulator/hi6421-regulator

[PATCH] regulator: vexpress: Constify regulator_ops

2019-04-10 Thread Axel Lin
vexpress_regulator_ops_ro and vexpress_regulator_ops are never changed, make them const. Signed-off-by: Axel Lin --- drivers/regulator/vexpress-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/vexpress-regulator.c b/drivers/regulator

[PATCH 1/2] regulator: mcp16502: Remove unneeded fields from struct mcp16502

2019-04-10 Thread Axel Lin
At the context with rdev, we can use rdev->regmap instead of mcp->rmap. The *rdev[NUM_REGULATORS] is not required because current code uses devm_regulator_register() so we don't need to store *rdev for clean up paths. Signed-off-by: Axel Lin --- drivers/regulator/mcp1

[PATCH 2/2] regulator: mcp16502: Remove setup_regulators function

2019-04-10 Thread Axel Lin
It seems a little bit odd current code pass struct regulator_config rather than a pointer to setup_regulators. The setup_regulators is so simple and only has one caller, so remove it. Signed-off-by: Axel Lin --- drivers/regulator/mcp16502.c | 37 +++- 1 file

[PATCH 1/2] regulator: cpcap: Remove unused vsel_shift from struct cpcap_regulator

2019-02-25 Thread Axel Lin
This driver uses regulator_get/set_voltage_sel_regmap so it does not use vsel_shift. Actually, vsel_shift can be calculated by vsel_mask setting. Signed-off-by: Axel Lin --- drivers/regulator/cpcap-regulator.c | 102 ++-- 1 file changed, 50 insertions(+), 52 deletions

[PATCH 2/2] regulator: cpcap: Constify omap4_regulators and xoom_regulators

2019-02-25 Thread Axel Lin
They should never change, make them const. Signed-off-by: Axel Lin --- drivers/regulator/cpcap-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/cpcap-regulator.c b/drivers/regulator/cpcap-regulator.c index c15ced1b5968..e7dab5c4d1d1 100644

[PATCH 1/2] regulator: 88pm8607: Simplify pm8607_list_voltage implementation

2019-02-26 Thread Axel Lin
Set volt_table filed then we can use regulator_list_voltage_table. Since we have volt_table setting, now we can remove vol_table from struct pm8607_regulator_info. Signed-off-by: Axel Lin --- drivers/regulator/88pm8607.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions

[PATCH 2/2] regulator: 88pm8607: Remove unused fields from struct pm8607_regulator_info

2019-02-26 Thread Axel Lin
The *i2c and *i2c_8606 are no longer used since this driver was converted to use regmap helpers. The *chip and *regulator are not really required. So remove these unused fields. Signed-off-by: Axel Lin --- drivers/regulator/88pm8607.c | 19 +-- 1 file changed, 5 insertions

[PATCH] regulator: wm8400: Get rid of wm8400_block_read/wm8400_set_bits functions

2019-02-26 Thread Axel Lin
The only user of wm8400_block_read/wm8400_set_bits functions is the wm8400 regulator driver. At the context of all the callers, we can use regmap_bulk_read/regmap_update_bits directly. Thus remove wm8400_block_read/wm8400_set_bits functions. Signed-off-by: Axel Lin --- drivers/mfd/wm8400-core.c

[PATCH] regulator: wm8400: Fix trivial typo

2019-02-26 Thread Axel Lin
Use WM8400_DC2_ENA_MASK for DCDC2 enable_mask. The define is the same as WM8400_DC1_ENA_MASK, just a cleanup. Signed-off-by: Axel Lin --- drivers/regulator/wm8400-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/wm8400-regulator.c b/drivers

<    3   4   5   6   7   8   9   10   11   12   >