[linusw-gpio:b4/asoc-tas-gpios 2/4] sound/soc/codecs/tas2781-i2c.c:786:25: error: 'struct tasdevice_priv' has no member named 'irq_info'

[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 b4/asoc-tas-gpios
head:   fdef6b7abff7f4cfe98c3bc496210885c9b26292
commit: 30316639286278a6d196a3f71c0f6e09c5850bbe [2/4] ASoC: tas2781-i2c: Drop weird GPIO code
config: arm-randconfig-001-20240805 (https://download.01.org/0day-ci/archive/20240805/202408052045.Xpi6dIIm-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240805/202408052045.Xpi6dIIm-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408052045.Xpi6dIIm-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   sound/soc/codecs/tas2781-i2c.c: In function 'tasdevice_parse_dt':
>> sound/soc/codecs/tas2781-i2c.c:786:25: error: 'struct tasdevice_priv' has no member named 'irq_info'
     786 |                 tas_priv->irq_info.irq_gpio = of_irq_get(np, 0);
         |                         ^~


vim +786 sound/soc/codecs/tas2781-i2c.c

ef3bcde75d06d6 Shenghao Ding     2023-06-18  754  
ef3bcde75d06d6 Shenghao Ding     2023-06-18  755  static void tasdevice_parse_dt(struct tasdevice_priv *tas_priv)
ef3bcde75d06d6 Shenghao Ding     2023-06-18  756  {
ef3bcde75d06d6 Shenghao Ding     2023-06-18  757  	struct i2c_client *client = (struct i2c_client *)tas_priv->client;
ef3bcde75d06d6 Shenghao Ding     2023-06-18  758  	unsigned int dev_addrs[TASDEVICE_MAX_CHANNELS];
30316639286278 Linus Walleij     2024-06-30  759  	int i, ndev = 0;
ef3bcde75d06d6 Shenghao Ding     2023-06-18  760  
ef3bcde75d06d6 Shenghao Ding     2023-06-18  761  	if (tas_priv->isacpi) {
ef3bcde75d06d6 Shenghao Ding     2023-06-18  762  		ndev = device_property_read_u32_array(&client->dev,
ef3bcde75d06d6 Shenghao Ding     2023-06-18  763  			"ti,audio-slots", NULL, 0);
ef3bcde75d06d6 Shenghao Ding     2023-06-18  764  		if (ndev <= 0) {
ef3bcde75d06d6 Shenghao Ding     2023-06-18  765  			ndev = 1;
ef3bcde75d06d6 Shenghao Ding     2023-06-18  766  			dev_addrs[0] = client->addr;
ef3bcde75d06d6 Shenghao Ding     2023-06-18  767  		} else {
ef3bcde75d06d6 Shenghao Ding     2023-06-18  768  			ndev = (ndev < ARRAY_SIZE(dev_addrs))
ef3bcde75d06d6 Shenghao Ding     2023-06-18  769  				? ndev : ARRAY_SIZE(dev_addrs);
ef3bcde75d06d6 Shenghao Ding     2023-06-18  770  			ndev = device_property_read_u32_array(&client->dev,
ef3bcde75d06d6 Shenghao Ding     2023-06-18  771  				"ti,audio-slots", dev_addrs, ndev);
ef3bcde75d06d6 Shenghao Ding     2023-06-18  772  		}
ef3bcde75d06d6 Shenghao Ding     2023-06-18  773  
30316639286278 Linus Walleij     2024-06-30  774  		tas_priv->irq =
ef3bcde75d06d6 Shenghao Ding     2023-06-18  775  			acpi_dev_gpio_irq_get(ACPI_COMPANION(&client->dev), 0);
31a45f9190b5b4 Rob Herring (Arm  2024-07-02  776) 	} else if (IS_ENABLED(CONFIG_OF)) {
ef3bcde75d06d6 Shenghao Ding     2023-06-18  777  		struct device_node *np = tas_priv->dev->of_node;
31a45f9190b5b4 Rob Herring (Arm  2024-07-02  778) 		u64 addr;
31a45f9190b5b4 Rob Herring (Arm  2024-07-02  779) 
31a45f9190b5b4 Rob Herring (Arm  2024-07-02  780) 		for (i = 0; i < TASDEVICE_MAX_CHANNELS; i++) {
31a45f9190b5b4 Rob Herring (Arm  2024-07-02  781) 			if (of_property_read_reg(np, i, &addr, NULL))
31a45f9190b5b4 Rob Herring (Arm  2024-07-02  782) 				break;
31a45f9190b5b4 Rob Herring (Arm  2024-07-02  783) 			dev_addrs[ndev++] = addr;
ef3bcde75d06d6 Shenghao Ding     2023-06-18  784  		}
31a45f9190b5b4 Rob Herring (Arm  2024-07-02  785) 
31a45f9190b5b4 Rob Herring (Arm  2024-07-02 @786) 		tas_priv->irq_info.irq_gpio = of_irq_get(np, 0);
31a45f9190b5b4 Rob Herring (Arm  2024-07-02  787) 	} else {
ef3bcde75d06d6 Shenghao Ding     2023-06-18  788  		ndev = 1;
ef3bcde75d06d6 Shenghao Ding     2023-06-18  789  		dev_addrs[0] = client->addr;
ef3bcde75d06d6 Shenghao Ding     2023-06-18  790  	}
ef3bcde75d06d6 Shenghao Ding     2023-06-18  791  	tas_priv->ndev = ndev;
ef3bcde75d06d6 Shenghao Ding     2023-06-18  792  	for (i = 0; i < ndev; i++)
ef3bcde75d06d6 Shenghao Ding     2023-06-18  793  		tas_priv->tasdevice[i].dev_addr = dev_addrs[i];
ef3bcde75d06d6 Shenghao Ding     2023-06-18  794  
ef3bcde75d06d6 Shenghao Ding     2023-06-18  795  	tas_priv->reset = devm_gpiod_get_optional(&client->dev,
ef3bcde75d06d6 Shenghao Ding     2023-06-18  796  			"reset-gpios", GPIOD_OUT_HIGH);
ef3bcde75d06d6 Shenghao Ding     2023-06-18  797  	if (IS_ERR(tas_priv->reset))
ef3bcde75d06d6 Shenghao Ding     2023-06-18  798  		dev_err(tas_priv->dev, "%s Can't get reset GPIO\n",
ef3bcde75d06d6 Shenghao Ding     2023-06-18  799  			__func__);
ef3bcde75d06d6 Shenghao Ding     2023-06-18  800  
ef3bcde75d06d6 Shenghao Ding     2023-06-18  801  	strcpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name);
ef3bcde75d06d6 Shenghao Ding     2023-06-18  802  }
ef3bcde75d06d6 Shenghao Ding     2023-06-18  803  

:::::: The code at line 786 was first introduced by commit
:::::: 31a45f9190b5b4f5cd8cdec8471babd5215eee04 ASoC: tas2781: Use of_property_read_reg()

:::::: TO: Rob Herring (Arm) <robh@xxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[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