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: adc: ad7192: Revert "properly check spi_get_device_match_data()"

This reverts commit b7f99fa1b64af2f696b13cec581cb4cd7d3982b8.

The added code is currently a dead code. Moreover, the driver is not
designed to have any defaults effectively making driver data a mandatory
information to work with. Taking all together, revert unneeded change.

Discussion at #1 concluded in agreeing a new policy on this for IIO.

Link: https://lore.kernel.org/linux-iio/20260217080514.1288115-1-andriy.shevchenko@linux.intel.com/ #1
Reported-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
0309e66a d6ae9f20

-3
-3
drivers/iio/adc/ad7192.c
··· 1402 1402 st->int_vref_mv = ret == -ENODEV ? avdd_mv : ret / MILLI; 1403 1403 1404 1404 st->chip_info = spi_get_device_match_data(spi); 1405 - if (!st->chip_info) 1406 - return -ENODEV; 1407 - 1408 1405 indio_dev->name = st->chip_info->name; 1409 1406 indio_dev->modes = INDIO_DIRECT_MODE; 1410 1407 indio_dev->info = st->chip_info->info;