]> asedeno.scripts.mit.edu Git - linux.git/commit
iio:common:st_sensors: add st_sensors_get_settings_index() helper function
authorDenis Ciocca <denis.ciocca@st.com>
Thu, 18 Jul 2019 22:53:43 +0000 (15:53 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jul 2019 21:52:04 +0000 (22:52 +0100)
commita090965b882333500d8780e2c1762e17782f413f
tree2d13f70dd391d051ceaa2b6d5871b2830e5075bf
parentf53199c0bc62657f7bc253b5dfc9f3d81ed2ca28
iio:common:st_sensors: add st_sensors_get_settings_index() helper function

Extract from st_sensors_check_device_support() function the code that
is used to get the specific settings for a device. This will be used
as generic extractor by each ST driver.

Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/st_sensors/st_sensors_core.c
include/linux/iio/common/st_sensors.h