summaryrefslogtreecommitdiffstats
path: root/include/linux/xarray.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-03-28 21:47:23 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-04-04 09:11:26 +0100
commit0ca269a4ae3982845a7ff97b8feaaf3562ac1c8d (patch)
tree47768979cd61d586af157a5c2ff787ced099e098 /include/linux/xarray.h
parent3139ff24e2bc25d619ef822491651ecfb886db90 (diff)
downloadcachepc-linux-0ca269a4ae3982845a7ff97b8feaaf3562ac1c8d.tar.gz
cachepc-linux-0ca269a4ae3982845a7ff97b8feaaf3562ac1c8d.zip
iio: adc: ti-ads1015: Convert to OF match data
Replace chip type enumeration in match data with pointer to static constant structure which contains all the different chip properties in one place, and then replace handling of chip type in probe() with simple copy of fields in the new match data structure into struct iio_dev. This reduces code and increases static data. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Andy Shevchenko <andy@kernel.org> Cc: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/20220328194725.149150-8-marex@denx.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/xarray.h')
0 files changed, 0 insertions, 0 deletions