[renesas-drivers:master 130/155] drivers/iio/adc/ti-ads131e08.c:180:5: error: 'struct spi_transfer' has no member named 'delay_usecs'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git master
head:   6f83a4e5ed435a21bc28605a5072057d8b3e4ac3
commit: bd7fb344822833182313d4bf1fe7e5f2ca19723b [130/155] Merge remote-tracking branch 'staging/staging-next' into renesas-drivers
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/commit/?id=bd7fb344822833182313d4bf1fe7e5f2ca19723b
        git remote add renesas-drivers https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git
        git fetch --no-tags renesas-drivers master
        git checkout bd7fb344822833182313d4bf1fe7e5f2ca19723b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/iio/adc/ti-ads131e08.c: In function 'ads131e08_read_reg':
>> drivers/iio/adc/ti-ads131e08.c:180:5: error: 'struct spi_transfer' has no member named 'delay_usecs'
     180 |    .delay_usecs = st->sdecode_delay_us,
         |     ^~~~~~~~~~~
   drivers/iio/adc/ti-ads131e08.c: In function 'ads131e08_write_reg':
   drivers/iio/adc/ti-ads131e08.c:206:5: error: 'struct spi_transfer' has no member named 'delay_usecs'
     206 |    .delay_usecs = st->sdecode_delay_us,
         |     ^~~~~~~~~~~


vim +180 drivers/iio/adc/ti-ads131e08.c

d935eddd2799f2 Tomislav Denis 2021-02-02  172  
d935eddd2799f2 Tomislav Denis 2021-02-02  173  static int ads131e08_read_reg(struct ads131e08_state *st, u8 reg)
d935eddd2799f2 Tomislav Denis 2021-02-02  174  {
d935eddd2799f2 Tomislav Denis 2021-02-02  175  	int ret;
d935eddd2799f2 Tomislav Denis 2021-02-02  176  	struct spi_transfer transfer[] = {
d935eddd2799f2 Tomislav Denis 2021-02-02  177  		{
d935eddd2799f2 Tomislav Denis 2021-02-02  178  			.tx_buf = &st->tx_buf,
d935eddd2799f2 Tomislav Denis 2021-02-02  179  			.len = 2,
d935eddd2799f2 Tomislav Denis 2021-02-02 @180  			.delay_usecs = st->sdecode_delay_us,
d935eddd2799f2 Tomislav Denis 2021-02-02  181  		}, {
d935eddd2799f2 Tomislav Denis 2021-02-02  182  			.rx_buf = &st->rx_buf,
d935eddd2799f2 Tomislav Denis 2021-02-02  183  			.len = 1,
d935eddd2799f2 Tomislav Denis 2021-02-02  184  		},
d935eddd2799f2 Tomislav Denis 2021-02-02  185  	};
d935eddd2799f2 Tomislav Denis 2021-02-02  186  
d935eddd2799f2 Tomislav Denis 2021-02-02  187  	st->tx_buf[0] = ADS131E08_CMD_RREG(reg);
d935eddd2799f2 Tomislav Denis 2021-02-02  188  	st->tx_buf[1] = 0;
d935eddd2799f2 Tomislav Denis 2021-02-02  189  
d935eddd2799f2 Tomislav Denis 2021-02-02  190  	ret = spi_sync_transfer(st->spi, transfer, ARRAY_SIZE(transfer));
d935eddd2799f2 Tomislav Denis 2021-02-02  191  	if (ret) {
d935eddd2799f2 Tomislav Denis 2021-02-02  192  		dev_err(&st->spi->dev, "Read register failed\n");
d935eddd2799f2 Tomislav Denis 2021-02-02  193  		return ret;
d935eddd2799f2 Tomislav Denis 2021-02-02  194  	}
d935eddd2799f2 Tomislav Denis 2021-02-02  195  
d935eddd2799f2 Tomislav Denis 2021-02-02  196  	return st->rx_buf[0];
d935eddd2799f2 Tomislav Denis 2021-02-02  197  }
d935eddd2799f2 Tomislav Denis 2021-02-02  198  

:::::: The code at line 180 was first introduced by commit
:::::: d935eddd2799f2559d3c909e5977c0a85a5af1b7 iio: adc: Add driver for Texas Instruments ADS131E0x ADC family

:::::: TO: Tomislav Denis <tomislav.denis@xxxxxxx>
:::::: CC: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux