[gpio:gpio-descriptors-regulator 3/8] drivers/regulator/max77686-regulator.c:258:11: 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:   a86195a2886ae58b7ad7499c8d3efeb9f5329ed4
commit: ceeec59be59fb6f9cd81e7fd11fc8914f62f927c [3/8] regulator: core: Only support passing enable GPIO descriptors
config: x86_64-randconfig-x018-201835 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout ceeec59be59fb6f9cd81e7fd11fc8914f62f927c
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/regulator/max77686-regulator.c: In function 'max77686_of_parse_cb':
>> drivers/regulator/max77686-regulator.c:258:11: error: 'struct regulator_config' has no member named 'ena_gpio'; did you mean 'ena_gpiod'?
      config->ena_gpio = of_get_named_gpio(np,
              ^~~~~~~~
              ena_gpiod
>> drivers/regulator/max77686-regulator.c:260:11: error: 'struct regulator_config' has no member named 'ena_gpio_flags'; did you mean 'ena_gpiod'?
      config->ena_gpio_flags = GPIOF_OUT_INIT_HIGH;
              ^~~~~~~~~~~~~~
              ena_gpiod
>> drivers/regulator/max77686-regulator.c:261:11: 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/max77686-regulator.c:267:28: error: 'struct regulator_config' has no member named 'ena_gpio'; did you mean 'ena_gpiod'?
     if (gpio_is_valid(config->ena_gpio)) {
                               ^~~~~~~~
                               ena_gpiod
--
   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 +258 drivers/regulator/max77686-regulator.c

f503071b drivers/regulator/max77686.c Yadwinder Singh Brar 2012-06-20  247  
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  248  static int max77686_of_parse_cb(struct device_node *np,
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  249  		const struct regulator_desc *desc,
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  250  		struct regulator_config *config)
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  251  {
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  252  	struct max77686_data *max77686 = config->driver_data;
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  253  
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  254  	switch (desc->id) {
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  255  	case MAX77686_BUCK8:
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  256  	case MAX77686_BUCK9:
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  257  	case MAX77686_LDO20 ... MAX77686_LDO22:
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05 @258  		config->ena_gpio = of_get_named_gpio(np,
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  259  					"maxim,ena-gpios", 0);
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05 @260  		config->ena_gpio_flags = GPIOF_OUT_INIT_HIGH;
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05 @261  		config->ena_gpio_initialized = true;
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  262  		break;
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  263  	default:
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  264  		return 0;
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  265  	}
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  266  
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  267  	if (gpio_is_valid(config->ena_gpio)) {
c53403a3 drivers/regulator/max77686.c Joe Perches          2015-05-18  268  		set_bit(desc->id, max77686->gpio_enabled);
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  269  
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  270  		return regmap_update_bits(config->regmap, desc->enable_reg,
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  271  					  desc->enable_mask,
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  272  					  MAX77686_GPIO_CONTROL);
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  273  	}
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  274  
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  275  	return 0;
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  276  }
3307e902 drivers/regulator/max77686.c Krzysztof Kozlowski  2015-01-05  277  

:::::: The code at line 258 was first introduced by commit
:::::: 3307e9025d29105ecc5fa1144508715cdddba195 regulator: max77686: Add GPIO control

:::::: TO: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

---
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