]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: sca3000: simplify with spi_get_device_match_data()
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Mon, 16 Feb 2026 10:24:48 +0000 (02:24 -0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:23 +0000 (08:24 +0000)
commitd6ae9f202f616527f0d9a3a3fe980d36ec332707
tree3494c5228d77141ca627aa6f13aba6bdb0e808d2
parent094d5d37d385ed99461883da013995ac2586dae0
iio: sca3000: simplify with spi_get_device_match_data()

Refactor each sca3000 variant with it's own chip_info struct, update the
sca3000_probe() to use spi_get_device_match_data().

Suggested-by: David Lechner <dlechner@baylibre.com>
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/sca3000.c