mbox series

[v2,00/11] iio:st_sensors: make use of regmap API

Message ID 20190718225353.2078-1-denis.ciocca@st.com (mailing list archive)
Headers show
Series iio:st_sensors: make use of regmap API | expand

Message

Denis CIOCCA July 18, 2019, 10:53 p.m. UTC
Updated patch series for st_sensors driver making use of regmap API.
In order to move the spi 3-wire related into st_sensors_spi.c some
rework was needed that's why in the series I don't export the
multiread bit only but it becomes the full get_settings.

Denis Ciocca (11):
  iio:common:st_sensors: add st_sensors_get_settings_index() helper
    function
  iio:accel: introduce st_accel_get_settings() function
  iio:gyro: introduce st_gyro_get_settings() function
  iio:magn: introduce st_magn_get_settings() function
  iio:pressure: introduce st_press_get_settings() function
  iio:accel: device settings are set immediately during probe
  iio:gyro: device settings are set immediately during probe
  iio:magn: device settings are set immediately during probe
  iio:pressure: device settings are set immediately during probe
  iio: move 3-wire spi initialization to st_sensors_spi
  iio: make st_sensors drivers use regmap

 drivers/iio/accel/st_accel.h                  |   1 +
 drivers/iio/accel/st_accel_buffer.c           |   3 +-
 drivers/iio/accel/st_accel_core.c             |  25 +++-
 drivers/iio/accel/st_accel_i2c.c              |  23 ++-
 drivers/iio/accel/st_accel_spi.c              |  20 ++-
 .../iio/common/st_sensors/st_sensors_buffer.c |  10 +-
 .../iio/common/st_sensors/st_sensors_core.c   | 118 ++++++---------
 .../iio/common/st_sensors/st_sensors_i2c.c    |  73 +++++----
 .../iio/common/st_sensors/st_sensors_spi.c    | 141 +++++++++---------
 .../common/st_sensors/st_sensors_trigger.c    |  10 +-
 drivers/iio/gyro/st_gyro.h                    |   1 +
 drivers/iio/gyro/st_gyro_buffer.c             |   3 +-
 drivers/iio/gyro/st_gyro_core.c               |  25 +++-
 drivers/iio/gyro/st_gyro_i2c.c                |  22 ++-
 drivers/iio/gyro/st_gyro_spi.c                |  20 ++-
 drivers/iio/magnetometer/st_magn.h            |   1 +
 drivers/iio/magnetometer/st_magn_buffer.c     |   3 +-
 drivers/iio/magnetometer/st_magn_core.c       |  25 +++-
 drivers/iio/magnetometer/st_magn_i2c.c        |  22 ++-
 drivers/iio/magnetometer/st_magn_spi.c        |  20 ++-
 drivers/iio/pressure/st_pressure.h            |   1 +
 drivers/iio/pressure/st_pressure_buffer.c     |   3 +-
 drivers/iio/pressure/st_pressure_core.c       |  25 +++-
 drivers/iio/pressure/st_pressure_i2c.c        |  31 ++--
 drivers/iio/pressure/st_pressure_spi.c        |  22 ++-
 include/linux/iio/common/st_sensors.h         |  47 +-----
 include/linux/iio/common/st_sensors_i2c.h     |   4 +-
 include/linux/iio/common/st_sensors_spi.h     |   4 +-
 28 files changed, 399 insertions(+), 304 deletions(-)