Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: temperature: ltc2983: make use of spi_get_device_match_data()

Use spi_get_device_match_data() as it simplifies the code. No functional
change intended...

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240222-ltc2983-misc-improv-v1-1-cf7d4457e98c@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Nuno Sa and committed by
Jonathan Cameron
3bdb96c9 df621530

+1 -3
+1 -3
drivers/iio/temperature/ltc2983.c
··· 1614 1614 1615 1615 st = iio_priv(indio_dev); 1616 1616 1617 - st->info = device_get_match_data(&spi->dev); 1618 - if (!st->info) 1619 - st->info = (void *)spi_get_device_id(spi)->driver_data; 1617 + st->info = spi_get_device_match_data(spi); 1620 1618 if (!st->info) 1621 1619 return -ENODEV; 1622 1620