[gpio:gpio-descriptors-regulator 3/8] drivers/regulator/wm8994-regulator.c:149:10: error: 'struct regulator_config' has no member named 'ena_gpio'; did you mean 'ena_gpiod'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-regulator
head:   3413d5a29dcb45755d49ae228a802630afd51073
commit: e7965b18441b7e9a3af0710a194eeb0c010ec411 [3/8] regulator: core: Only support passing enable GPIO descriptors
config: i386-randconfig-x008-201827 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout e7965b18441b7e9a3af0710a194eeb0c010ec411
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/regulator/wm8994-regulator.c: In function 'wm8994_ldo_probe':
>> drivers/regulator/wm8994-regulator.c:149:10: error: 'struct regulator_config' has no member named 'ena_gpio'; did you mean 'ena_gpiod'?
      config.ena_gpio = pdata->ldo[id].enable;
             ^~~~~~~~
             ena_gpiod
   drivers/regulator/wm8994-regulator.c:151:10: error: 'struct regulator_config' has no member named 'ena_gpio'; did you mean 'ena_gpiod'?
      config.ena_gpio = wm8994->pdata.ldo[id].enable;
             ^~~~~~~~
             ena_gpiod
>> drivers/regulator/wm8994-regulator.c:152:10: error: 'struct regulator_config' has no member named 'ena_gpio_initialized'; did you mean 'ena_gpio_invert'?
      config.ena_gpio_initialized = true;
             ^~~~~~~~~~~~~~~~~~~~
             ena_gpio_invert
   drivers/regulator/wm8994-regulator.c:162:15: error: 'struct regulator_config' has no member named 'ena_gpio'; did you mean 'ena_gpiod'?
      if (!config.ena_gpio)
                  ^~~~~~~~
                  ena_gpiod

vim +149 drivers/regulator/wm8994-regulator.c

e3d27775 Mark Brown         2013-04-05  124  
a5023574 Bill Pemberton     2012-11-19  125  static int wm8994_ldo_probe(struct platform_device *pdev)
69dc16c3 Mark Brown         2010-01-25  126  {
69dc16c3 Mark Brown         2010-01-25  127  	struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent);
dff91d0b Jingoo Han         2013-07-30  128  	struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev);
69dc16c3 Mark Brown         2010-01-25  129  	int id = pdev->id % ARRAY_SIZE(pdata->ldo);
c172708d Mark Brown         2012-04-04  130  	struct regulator_config config = { };
69dc16c3 Mark Brown         2010-01-25  131  	struct wm8994_ldo *ldo;
69dc16c3 Mark Brown         2010-01-25  132  	int ret;
69dc16c3 Mark Brown         2010-01-25  133  
69dc16c3 Mark Brown         2010-01-25  134  	dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1);
69dc16c3 Mark Brown         2010-01-25  135  
b9e0348f Mark Brown         2012-02-15  136  	ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm8994_ldo), GFP_KERNEL);
4deaf85a Sachin Kamat       2014-02-20  137  	if (!ldo)
69dc16c3 Mark Brown         2010-01-25  138  		return -ENOMEM;
69dc16c3 Mark Brown         2010-01-25  139  
69dc16c3 Mark Brown         2010-01-25  140  	ldo->wm8994 = wm8994;
e3d27775 Mark Brown         2013-04-05  141  	ldo->supply = wm8994_ldo_consumer[id];
e3d27775 Mark Brown         2013-04-05  142  	ldo->supply.dev_name = dev_name(wm8994->dev);
69dc16c3 Mark Brown         2010-01-25  143  
5d0526ea Mark Brown         2012-05-08  144  	config.dev = wm8994->dev;
c172708d Mark Brown         2012-04-04  145  	config.driver_data = ldo;
633b6fcd Mark Brown         2012-04-15  146  	config.regmap = wm8994->regmap;
e3d27775 Mark Brown         2013-04-05  147  	config.init_data = &ldo->init_data;
1de3821a Markus Pargmann    2014-11-03  148  	if (pdata) {
495fd8c8 Mark Brown         2012-06-27 @149  		config.ena_gpio = pdata->ldo[id].enable;
1de3821a Markus Pargmann    2014-11-03  150  	} else if (wm8994->dev->of_node) {
3ea93896 Sylwester Nawrocki 2013-04-11  151  		config.ena_gpio = wm8994->pdata.ldo[id].enable;
1de3821a Markus Pargmann    2014-11-03 @152  		config.ena_gpio_initialized = true;
1de3821a Markus Pargmann    2014-11-03  153  	}
e3d27775 Mark Brown         2013-04-05  154  
e3d27775 Mark Brown         2013-04-05  155  	/* Use default constraints if none set up */
3ea93896 Sylwester Nawrocki 2013-04-11  156  	if (!pdata || !pdata->ldo[id].init_data || wm8994->dev->of_node) {
e3d27775 Mark Brown         2013-04-05  157  		dev_dbg(wm8994->dev, "Using default init data, supply %s %s\n",
e3d27775 Mark Brown         2013-04-05  158  			ldo->supply.dev_name, ldo->supply.supply);
e3d27775 Mark Brown         2013-04-05  159  
e3d27775 Mark Brown         2013-04-05  160  		ldo->init_data = wm8994_ldo_default[id];
e3d27775 Mark Brown         2013-04-05  161  		ldo->init_data.consumer_supplies = &ldo->supply;
e3d27775 Mark Brown         2013-04-05  162  		if (!config.ena_gpio)
e3d27775 Mark Brown         2013-04-05  163  			ldo->init_data.constraints.valid_ops_mask = 0;
e3d27775 Mark Brown         2013-04-05  164  	} else {
e3d27775 Mark Brown         2013-04-05  165  		ldo->init_data = *pdata->ldo[id].init_data;
495fd8c8 Mark Brown         2012-06-27  166  	}
c172708d Mark Brown         2012-04-04  167  
9e2bfbbd Mark Brown         2013-08-31  168  	ldo->regulator = devm_regulator_register(&pdev->dev,
9e2bfbbd Mark Brown         2013-08-31  169  						 &wm8994_ldo_desc[id],
9e2bfbbd Mark Brown         2013-08-31  170  						 &config);
69dc16c3 Mark Brown         2010-01-25  171  	if (IS_ERR(ldo->regulator)) {
69dc16c3 Mark Brown         2010-01-25  172  		ret = PTR_ERR(ldo->regulator);
69dc16c3 Mark Brown         2010-01-25  173  		dev_err(wm8994->dev, "Failed to register LDO%d: %d\n",
69dc16c3 Mark Brown         2010-01-25  174  			id + 1, ret);
495fd8c8 Mark Brown         2012-06-27  175  		goto err;
69dc16c3 Mark Brown         2010-01-25  176  	}
69dc16c3 Mark Brown         2010-01-25  177  
69dc16c3 Mark Brown         2010-01-25  178  	platform_set_drvdata(pdev, ldo);
69dc16c3 Mark Brown         2010-01-25  179  
69dc16c3 Mark Brown         2010-01-25  180  	return 0;
69dc16c3 Mark Brown         2010-01-25  181  
69dc16c3 Mark Brown         2010-01-25  182  err:
69dc16c3 Mark Brown         2010-01-25  183  	return ret;
69dc16c3 Mark Brown         2010-01-25  184  }
69dc16c3 Mark Brown         2010-01-25  185  

:::::: The code at line 149 was first introduced by commit
:::::: 495fd8c8fdefebf545f8ea01d10ae7b812931c27 regulator: wm8994: Use core GPIO enable support

:::::: TO: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux