diff options
author | Denis Ciocca <denis.ciocca@st.com> | 2019-07-18 15:53:46 -0700 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-07-27 22:52:05 +0100 |
commit | aa4e75c85076c056d944b92ed94b76277430d263 (patch) | |
tree | b279926cf595dc5df305b4c59fe91471e9892806 /drivers/iio/magnetometer/st_magn.h | |
parent | 2acca26bba3a7487e941e234e8ee33a998eecf53 (diff) |
iio:magn: introduce st_magn_get_settings() function
The function is introduced to retrieve magn device settings. It will be
used by probe in order to configure regmap.
Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/magnetometer/st_magn.h')
-rw-r--r-- | drivers/iio/magnetometer/st_magn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/st_magn.h b/drivers/iio/magnetometer/st_magn.h index d69ef9b2a731..204b285725c8 100644 --- a/drivers/iio/magnetometer/st_magn.h +++ b/drivers/iio/magnetometer/st_magn.h @@ -22,6 +22,7 @@ #define LIS2MDL_MAGN_DEV_NAME "lis2mdl" #define LSM9DS1_MAGN_DEV_NAME "lsm9ds1_magn" +const struct st_sensor_settings *st_magn_get_settings(const char *name); int st_magn_common_probe(struct iio_dev *indio_dev); void st_magn_common_remove(struct iio_dev *indio_dev); |