diff mbox series

[v3,7/7] regulator: bd718xx: rename bd71837 to 718xx

Message ID 6b3e7b3aeef67d85083f49894e0b0fe482fc08c4.1536912922.git.matti.vaittinen@fi.rohmeurope.com (mailing list archive)
State Not Applicable, archived
Headers show
Series regulator/mfd/dt_bindings: bd718x7: Support ROHM bd71847 | expand

Commit Message

Vaittinen, Matti Sept. 14, 2018, 8:34 a.m. UTC
rename bd71837-regulator.c to bd718x7-regulator.c to reflect the
fact that also BD71847 is now supported by the driver.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
---
 drivers/regulator/Kconfig                                      | 2 +-
 drivers/regulator/Makefile                                     | 2 +-
 drivers/regulator/{bd71837-regulator.c => bd718x7-regulator.c} | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename drivers/regulator/{bd71837-regulator.c => bd718x7-regulator.c} (100%)

Comments

kernel test robot Sept. 18, 2018, 10:13 a.m. UTC | #1
Hi Matti,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on regulator/for-next]
[also build test ERROR on next-20180913]
[cannot apply to v4.19-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Matti-Vaittinen/regulator-mfd-dt_bindings-bd718x7-Support-ROHM-bd71847/20180914-210454
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
config: x86_64-randconfig-s4-09181517 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

>> drivers/regulator/bd718x7-regulator.c:364:16: error: implicit declaration of function 'of_match_ptr'; did you mean 'hash_ptr'? [-Werror=implicit-function-declaration]
       .of_match = of_match_ptr("BUCK1"),
                   ^~~~~~~~~~~~
                   hash_ptr
>> drivers/regulator/bd718x7-regulator.c:364:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
   drivers/regulator/bd718x7-regulator.c:364:16: note: (near initialization for 'bd71847_regulators[0].desc.of_match')
>> drivers/regulator/bd718x7-regulator.c:364:16: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:364:16: note: (near initialization for 'bd71847_regulators[0].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:365:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .regulators_node = of_match_ptr("regulators"),
                          ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:365:23: note: (near initialization for 'bd71847_regulators[0].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:365:23: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:365:23: note: (near initialization for 'bd71847_regulators[0].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:388:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .of_match = of_match_ptr("BUCK2"),
                   ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:388:16: note: (near initialization for 'bd71847_regulators[1].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:388:16: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:388:16: note: (near initialization for 'bd71847_regulators[1].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:389:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .regulators_node = of_match_ptr("regulators"),
                          ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:389:23: note: (near initialization for 'bd71847_regulators[1].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:389:23: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:389:23: note: (near initialization for 'bd71847_regulators[1].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:411:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .of_match = of_match_ptr("BUCK3"),
                   ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:411:16: note: (near initialization for 'bd71847_regulators[2].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:411:16: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:411:16: note: (near initialization for 'bd71847_regulators[2].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:412:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .regulators_node = of_match_ptr("regulators"),
                          ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:412:23: note: (near initialization for 'bd71847_regulators[2].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:412:23: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:412:23: note: (near initialization for 'bd71847_regulators[2].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:438:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .of_match = of_match_ptr("BUCK4"),
                   ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:438:16: note: (near initialization for 'bd71847_regulators[3].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:438:16: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:438:16: note: (near initialization for 'bd71847_regulators[3].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:439:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .regulators_node = of_match_ptr("regulators"),
                          ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:439:23: note: (near initialization for 'bd71847_regulators[3].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:439:23: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:439:23: note: (near initialization for 'bd71847_regulators[3].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:465:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .of_match = of_match_ptr("BUCK5"),
                   ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:465:16: note: (near initialization for 'bd71847_regulators[4].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:465:16: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:465:16: note: (near initialization for 'bd71847_regulators[4].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:466:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .regulators_node = of_match_ptr("regulators"),
                          ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:466:23: note: (near initialization for 'bd71847_regulators[4].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:466:23: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:466:23: note: (near initialization for 'bd71847_regulators[4].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:487:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .of_match = of_match_ptr("BUCK6"),
                   ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:487:16: note: (near initialization for 'bd71847_regulators[5].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:487:16: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:487:16: note: (near initialization for 'bd71847_regulators[5].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:488:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .regulators_node = of_match_ptr("regulators"),
                          ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:488:23: note: (near initialization for 'bd71847_regulators[5].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:488:23: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:488:23: note: (near initialization for 'bd71847_regulators[5].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:511:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .of_match = of_match_ptr("LDO1"),
                   ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:511:16: note: (near initialization for 'bd71847_regulators[6].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:511:16: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:511:16: note: (near initialization for 'bd71847_regulators[6].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:512:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .regulators_node = of_match_ptr("regulators"),
                          ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:512:23: note: (near initialization for 'bd71847_regulators[6].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:512:23: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:512:23: note: (near initialization for 'bd71847_regulators[6].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:537:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .of_match = of_match_ptr("LDO2"),
                   ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:537:16: note: (near initialization for 'bd71847_regulators[7].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:537:16: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:537:16: note: (near initialization for 'bd71847_regulators[7].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:538:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .regulators_node = of_match_ptr("regulators"),
                          ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:538:23: note: (near initialization for 'bd71847_regulators[7].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:538:23: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:538:23: note: (near initialization for 'bd71847_regulators[7].desc.regulators_node')
   drivers/regulator/bd718x7-regulator.c:559:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .of_match = of_match_ptr("LDO3"),
                   ^~~~~~~~~~~~
   drivers/regulator/bd718x7-regulator.c:559:16: note: (near initialization for 'bd71847_regulators[8].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:559:16: error: initializer element is not constant
   drivers/regulator/bd718x7-regulator.c:559:16: note: (near initialization for 'bd71847_regulators[8].desc.of_match')
   drivers/regulator/bd718x7-regulator.c:560:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
       .regulators_node = of_match_ptr("regulators"),
                          ^~~~~~~~~~~~

vim +364 drivers/regulator/bd718x7-regulator.c

41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  359  
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  360  static const struct bd718xx_regulator_data bd71847_regulators[] = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  361  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  362  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  363  			.name = "buck1",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14 @364  			.of_match = of_match_ptr("BUCK1"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  365  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  366  			.id = BD718XX_BUCK1,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  367  			.ops = &bd718xx_dvs_buck_regulator_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  368  			.type = REGULATOR_VOLTAGE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  369  			.n_voltages = BD718XX_DVS_BUCK_VOLTAGE_NUM,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  370  			.linear_ranges = bd718xx_dvs_buck_volts,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  371  			.n_linear_ranges =
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  372  				ARRAY_SIZE(bd718xx_dvs_buck_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  373  			.vsel_reg = BD718XX_REG_BUCK1_VOLT_RUN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  374  			.vsel_mask = DVS_BUCK_RUN_MASK,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  375  			.enable_reg = BD718XX_REG_BUCK1_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  376  			.enable_mask = BD718XX_BUCK_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  377  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  378  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  379  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  380  			.reg = BD718XX_REG_BUCK1_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  381  			.mask = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  382  			.val = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  383  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  384  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  385  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  386  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  387  			.name = "buck2",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  388  			.of_match = of_match_ptr("BUCK2"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  389  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  390  			.id = BD718XX_BUCK2,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  391  			.ops = &bd718xx_dvs_buck_regulator_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  392  			.type = REGULATOR_VOLTAGE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  393  			.n_voltages = BD718XX_DVS_BUCK_VOLTAGE_NUM,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  394  			.linear_ranges = bd718xx_dvs_buck_volts,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  395  			.n_linear_ranges = ARRAY_SIZE(bd718xx_dvs_buck_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  396  			.vsel_reg = BD718XX_REG_BUCK2_VOLT_RUN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  397  			.vsel_mask = DVS_BUCK_RUN_MASK,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  398  			.enable_reg = BD718XX_REG_BUCK2_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  399  			.enable_mask = BD718XX_BUCK_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  400  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  401  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  402  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  403  			.reg = BD718XX_REG_BUCK2_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  404  			.mask = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  405  			.val = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  406  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  407  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  408  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  409  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  410  			.name = "buck3",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  411  			.of_match = of_match_ptr("BUCK3"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  412  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  413  			.id = BD718XX_BUCK3,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  414  			.ops = &bd718xx_pickable_range_buck_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  415  			.type = REGULATOR_VOLTAGE,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  416  			.n_voltages = BD71847_BUCK3_VOLTAGE_NUM,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  417  			.linear_ranges = bd71847_buck3_volts,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  418  			.n_linear_ranges =
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  419  				ARRAY_SIZE(bd71847_buck3_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  420  			.vsel_reg = BD718XX_REG_1ST_NODVS_BUCK_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  421  			.vsel_mask = BD718XX_1ST_NODVS_BUCK_MASK,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  422  			.vsel_range_reg = BD718XX_REG_1ST_NODVS_BUCK_VOLT,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  423  			.vsel_range_mask = BD71847_BUCK3_RANGE_MASK,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  424  			.linear_range_selectors = bd71847_buck3_volt_range_sel,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  425  			.enable_reg = BD718XX_REG_1ST_NODVS_BUCK_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  426  			.enable_mask = BD718XX_BUCK_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  427  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  428  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  429  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  430  			.reg = BD718XX_REG_1ST_NODVS_BUCK_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  431  			.mask = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  432  			.val = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  433  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  434  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  435  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  436  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  437  			.name = "buck4",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  438  			.of_match = of_match_ptr("BUCK4"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  439  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  440  			.id = BD718XX_BUCK4,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  441  			.ops = &bd718xx_pickable_range_buck_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  442  			.type = REGULATOR_VOLTAGE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  443  			.n_voltages = BD71847_BUCK4_VOLTAGE_NUM,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  444  			.linear_ranges = bd71847_buck4_volts,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  445  			.n_linear_ranges =
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  446  				ARRAY_SIZE(bd71847_buck4_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  447  			.enable_reg = BD718XX_REG_2ND_NODVS_BUCK_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  448  			.vsel_reg = BD718XX_REG_2ND_NODVS_BUCK_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  449  			.vsel_mask = BD71847_BUCK4_MASK,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  450  			.vsel_range_reg = BD718XX_REG_2ND_NODVS_BUCK_VOLT,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  451  			.vsel_range_mask = BD71847_BUCK4_RANGE_MASK,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  452  			.linear_range_selectors = bd71847_buck4_volt_range_sel,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  453  			.enable_mask = BD718XX_BUCK_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  454  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  455  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  456  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  457  			.reg = BD718XX_REG_2ND_NODVS_BUCK_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  458  			.mask = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  459  			.val = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  460  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  461  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  462  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  463  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  464  			.name = "buck5",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  465  			.of_match = of_match_ptr("BUCK5"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  466  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  467  			.id = BD718XX_BUCK5,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  468  			.ops = &bd718xx_buck_regulator_nolinear_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  469  			.type = REGULATOR_VOLTAGE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  470  			.volt_table = &bd718xx_3rd_nodvs_buck_volts[0],
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  471  			.n_voltages = ARRAY_SIZE(bd718xx_3rd_nodvs_buck_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  472  			.vsel_reg = BD718XX_REG_3RD_NODVS_BUCK_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  473  			.vsel_mask = BD718XX_3RD_NODVS_BUCK_MASK,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  474  			.enable_reg = BD718XX_REG_3RD_NODVS_BUCK_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  475  			.enable_mask = BD718XX_BUCK_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  476  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  477  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  478  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  479  			.reg = BD718XX_REG_3RD_NODVS_BUCK_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  480  			.mask = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  481  			.val = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  482  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  483  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  484  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  485  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  486  			.name = "buck6",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  487  			.of_match = of_match_ptr("BUCK6"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  488  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  489  			.id = BD718XX_BUCK6,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  490  			.ops = &bd718xx_buck_regulator_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  491  			.type = REGULATOR_VOLTAGE,
67534934c drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  492  			.n_voltages = BD718XX_4TH_NODVS_BUCK_VOLTAGE_NUM,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  493  			.linear_ranges = bd718xx_4th_nodvs_buck_volts,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  494  			.n_linear_ranges =
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  495  				ARRAY_SIZE(bd718xx_4th_nodvs_buck_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  496  			.vsel_reg = BD718XX_REG_4TH_NODVS_BUCK_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  497  			.vsel_mask = BD718XX_4TH_NODVS_BUCK_MASK,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  498  			.enable_reg = BD718XX_REG_4TH_NODVS_BUCK_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  499  			.enable_mask = BD718XX_BUCK_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  500  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  501  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  502  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  503  			.reg = BD718XX_REG_4TH_NODVS_BUCK_CTRL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  504  			.mask = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  505  			.val = BD718XX_BUCK_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  506  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  507  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  508  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  509  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  510  			.name = "ldo1",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  511  			.of_match = of_match_ptr("LDO1"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  512  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  513  			.id = BD718XX_LDO1,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  514  			.ops = &bd718xx_pickable_range_ldo_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  515  			.type = REGULATOR_VOLTAGE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  516  			.n_voltages = BD718XX_LDO1_VOLTAGE_NUM,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  517  			.linear_ranges = bd718xx_ldo1_volts,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  518  			.n_linear_ranges = ARRAY_SIZE(bd718xx_ldo1_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  519  			.vsel_reg = BD718XX_REG_LDO1_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  520  			.vsel_mask = BD718XX_LDO1_MASK,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  521  			.vsel_range_reg = BD718XX_REG_LDO1_VOLT,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  522  			.vsel_range_mask = BD718XX_LDO1_RANGE_MASK,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  523  			.linear_range_selectors = bd718xx_ldo1_volt_range_sel,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  524  			.enable_reg = BD718XX_REG_LDO1_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  525  			.enable_mask = BD718XX_LDO_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  526  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  527  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  528  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  529  			.reg = BD718XX_REG_LDO1_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  530  			.mask = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  531  			.val = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  532  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  533  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  534  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  535  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  536  			.name = "ldo2",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  537  			.of_match = of_match_ptr("LDO2"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  538  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  539  			.id = BD718XX_LDO2,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  540  			.ops = &bd718xx_ldo_regulator_nolinear_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  541  			.type = REGULATOR_VOLTAGE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  542  			.volt_table = &ldo_2_volts[0],
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  543  			.vsel_reg = BD718XX_REG_LDO2_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  544  			.vsel_mask = BD718XX_LDO2_MASK,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  545  			.n_voltages = ARRAY_SIZE(ldo_2_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  546  			.enable_reg = BD718XX_REG_LDO2_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  547  			.enable_mask = BD718XX_LDO_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  548  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  549  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  550  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  551  			.reg = BD718XX_REG_LDO2_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  552  			.mask = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  553  			.val = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  554  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  555  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  556  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  557  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  558  			.name = "ldo3",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  559  			.of_match = of_match_ptr("LDO3"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  560  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  561  			.id = BD718XX_LDO3,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  562  			.ops = &bd718xx_ldo_regulator_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  563  			.type = REGULATOR_VOLTAGE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  564  			.n_voltages = BD718XX_LDO3_VOLTAGE_NUM,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  565  			.linear_ranges = bd718xx_ldo3_volts,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  566  			.n_linear_ranges = ARRAY_SIZE(bd718xx_ldo3_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  567  			.vsel_reg = BD718XX_REG_LDO3_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  568  			.vsel_mask = BD718XX_LDO3_MASK,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  569  			.enable_reg = BD718XX_REG_LDO3_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  570  			.enable_mask = BD718XX_LDO_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  571  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  572  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  573  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  574  			.reg = BD718XX_REG_LDO3_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  575  			.mask = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  576  			.val = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  577  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  578  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  579  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  580  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  581  			.name = "ldo4",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  582  			.of_match = of_match_ptr("LDO4"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  583  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  584  			.id = BD718XX_LDO4,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  585  			.ops = &bd718xx_ldo_regulator_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  586  			.type = REGULATOR_VOLTAGE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  587  			.n_voltages = BD718XX_LDO4_VOLTAGE_NUM,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  588  			.linear_ranges = bd718xx_ldo4_volts,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  589  			.n_linear_ranges = ARRAY_SIZE(bd718xx_ldo4_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  590  			.vsel_reg = BD718XX_REG_LDO4_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  591  			.vsel_mask = BD718XX_LDO4_MASK,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  592  			.enable_reg = BD718XX_REG_LDO4_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  593  			.enable_mask = BD718XX_LDO_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  594  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  595  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  596  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  597  			.reg = BD718XX_REG_LDO4_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  598  			.mask = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  599  			.val = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  600  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  601  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  602  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  603  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  604  			.name = "ldo5",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  605  			.of_match = of_match_ptr("LDO5"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  606  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  607  			.id = BD718XX_LDO5,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  608  			.ops = &bd718xx_pickable_range_ldo_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  609  			.type = REGULATOR_VOLTAGE,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  610  			.n_voltages = BD71847_LDO5_VOLTAGE_NUM,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  611  			.linear_ranges = bd71847_ldo5_volts,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  612  			.n_linear_ranges = ARRAY_SIZE(bd71847_ldo5_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  613  			.vsel_reg = BD718XX_REG_LDO5_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  614  			.vsel_mask = BD71847_LDO5_MASK,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  615  			.vsel_range_reg = BD718XX_REG_LDO5_VOLT,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  616  			.vsel_range_mask = BD71847_LDO5_RANGE_MASK,
248269ce1 drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  617  			.linear_range_selectors = bd71847_ldo5_volt_range_sel,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  618  			.enable_reg = BD718XX_REG_LDO5_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  619  			.enable_mask = BD718XX_LDO_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  620  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  621  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  622  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  623  			.reg = BD718XX_REG_LDO5_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  624  			.mask = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  625  			.val = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  626  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  627  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  628  	{
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  629  		.desc = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  630  			.name = "ldo6",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  631  			.of_match = of_match_ptr("LDO6"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  632  			.regulators_node = of_match_ptr("regulators"),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  633  			.id = BD718XX_LDO6,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  634  			.ops = &bd718xx_ldo_regulator_ops,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  635  			.type = REGULATOR_VOLTAGE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  636  			.n_voltages = BD718XX_LDO6_VOLTAGE_NUM,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  637  			.linear_ranges = bd718xx_ldo6_volts,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  638  			.n_linear_ranges = ARRAY_SIZE(bd718xx_ldo6_volts),
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  639  			/* LDO6 is supplied by buck5 */
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  640  			.supply_name = "buck5",
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  641  			.vsel_reg = BD718XX_REG_LDO6_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  642  			.vsel_mask = BD718XX_LDO6_MASK,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  643  			.enable_reg = BD718XX_REG_LDO6_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  644  			.enable_mask = BD718XX_LDO_EN,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  645  			.owner = THIS_MODULE,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  646  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  647  		.init = {
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  648  			.reg = BD718XX_REG_LDO6_VOLT,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  649  			.mask = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  650  			.val = BD718XX_LDO_SEL,
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  651  		},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  652  	},
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  653  };
41b976fda drivers/regulator/bd71837-regulator.c Matti Vaittinen 2018-09-14  654  

:::::: The code at line 364 was first introduced by commit
:::::: 41b976fdab20799f28511dbbefb0c2957060545e regulator/mfd: Support ROHM BD71847 power management IC

:::::: TO: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
:::::: CC: 0day robot <lkp@intel.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
Vaittinen, Matti Sept. 19, 2018, 6:32 a.m. UTC | #2
Hello All,

On Tue, Sep 18, 2018 at 06:13:48PM +0800, kbuild test robot wrote:
> Thank you for the patch! Yet something to improve:
> 
> [auto build test ERROR on regulator/for-next]
> [also build test ERROR on next-20180913]
> [cannot apply to v4.19-rc4]
> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
> 
> url:    https://github.com/0day-ci/linux/commits/Matti-Vaittinen/regulator-mfd-dt_bindings-bd718x7-Support-ROHM-bd71847/20180914-210454
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
> config: x86_64-randconfig-s4-09181517 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
>         # save the attached .config to linux build tree
>         make ARCH=x86_64 
> 
> All error/warnings (new ones prefixed by >>):
> 
> >> drivers/regulator/bd718x7-regulator.c:364:16: error: implicit declaration of function 'of_match_ptr'; did you mean 'hash_ptr'? [-Werror=implicit-function-declaration]
>        .of_match = of_match_ptr("BUCK1"),
>                    ^~~~~~~~~~~~
>                    hash_ptr

This error is not introduced in this patch series. The already in-tree
implementation of bd71837 driver has this bug already. I'll send a
trivial patch to Mark for adding the missing include.

Br,
	Matti Vaittinen
diff mbox series

Patch

diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index 329cdd33ed62..6e96ef1bd74a 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -189,7 +189,7 @@  config REGULATOR_BD718XX
 	  and LDO regulators.
 
 	  This driver can also be built as a module. If so, the module
-	  will be called bd71837-regulator.
+	  will be called bd718x7-regulator.
 
 config REGULATOR_BD9571MWV
 	tristate "ROHM BD9571MWV Regulators"
diff --git a/drivers/regulator/Makefile b/drivers/regulator/Makefile
index 801d9a34a203..eac4d794f3b8 100644
--- a/drivers/regulator/Makefile
+++ b/drivers/regulator/Makefile
@@ -27,7 +27,7 @@  obj-$(CONFIG_REGULATOR_AS3711) += as3711-regulator.o
 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o
 obj-$(CONFIG_REGULATOR_AXP20X) += axp20x-regulator.o
 obj-$(CONFIG_REGULATOR_BCM590XX) += bcm590xx-regulator.o
-obj-$(CONFIG_REGULATOR_BD718XX) += bd71837-regulator.o
+obj-$(CONFIG_REGULATOR_BD718XX) += bd718x7-regulator.o
 obj-$(CONFIG_REGULATOR_BD9571MWV) += bd9571mwv-regulator.o
 obj-$(CONFIG_REGULATOR_DA903X)	+= da903x.o
 obj-$(CONFIG_REGULATOR_DA9052)	+= da9052-regulator.o
diff --git a/drivers/regulator/bd71837-regulator.c b/drivers/regulator/bd718x7-regulator.c
similarity index 100%
rename from drivers/regulator/bd71837-regulator.c
rename to drivers/regulator/bd718x7-regulator.c