]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: accel: kxcjk-1013: Get rid of enum kx_chipset
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 24 Oct 2024 19:05:03 +0000 (22:05 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 28 Oct 2024 20:04:12 +0000 (20:04 +0000)
commit5539c54b3401b48791fb6f702fd6a5cbdc1403ad
tree87a3e6c3ff6fec164ff612dfba0a96ed472e0f46
parentd300c0e5c55af04da4bc202179bd7522f4e0cb24
iio: accel: kxcjk-1013: Get rid of enum kx_chipset

Instead of using enum, out of which only a couple of values
are being actually used, make a comparisons against pointer
to the respective chip_info structures.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241024191200.229894-15-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kxcjk-1013.c