iio:magn: introduce st_magn_get_settings() function
authorDenis Ciocca <denis.ciocca@st.com>
Thu, 18 Jul 2019 22:53:46 +0000 (15:53 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jul 2019 21:52:05 +0000 (22:52 +0100)
commitaa4e75c85076c056d944b92ed94b76277430d263
treeb279926cf595dc5df305b4c59fe91471e9892806
parent2acca26bba3a7487e941e234e8ee33a998eecf53
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>
drivers/iio/magnetometer/st_magn.h
drivers/iio/magnetometer/st_magn_core.c