mbox series

[0/5] Expand Semtech SAR Sensors support

Message ID 20211030111827.1494139-1-gwendal@chromium.org (mailing list archive)
Headers show
Series Expand Semtech SAR Sensors support | expand

Message

Gwendal Grignou Oct. 30, 2021, 11:18 a.m. UTC
Add a new Semtech SAR sensor SX9324.
Instead of recopying 1/3 of the sx9310 driver, move common code in a new
file. It will be used again for the next sensor, SX9360.

While moving the functions to the common file, noticed that constants are
sometimes used instead of chan->scan_type.realbits.

Gwendal Grignou (5):
  iio: Use .realbits to extend a small signed integer
  iio: sx9310: Extract common Semtech sensor logic
  iio: proximity: Add SX9324 support
  dt-bindings: iio: Add sx9324 binding
  iio: sx9324: Add dt_bidding support

 .../iio/proximity/semtech,sx9324.yaml         |  141 +++
 drivers/iio/accel/bma220_spi.c                |    3 +-
 drivers/iio/accel/kxcjk-1013.c                |    3 +-
 drivers/iio/accel/mma7455_core.c              |    3 +-
 drivers/iio/accel/stk8312.c                   |    2 +-
 drivers/iio/accel/stk8ba50.c                  |    3 +-
 drivers/iio/adc/ad7266.c                      |    3 +-
 drivers/iio/adc/at91-sama5d2_adc.c            |    3 +-
 drivers/iio/adc/ti-adc12138.c                 |    3 +-
 drivers/iio/adc/ti-ads1015.c                  |    8 +-
 drivers/iio/adc/xilinx-xadc-core.c            |    2 +-
 drivers/iio/magnetometer/mag3110.c            |    6 +-
 drivers/iio/pressure/mpl3115.c                |    7 +-
 drivers/iio/proximity/Kconfig                 |   18 +
 drivers/iio/proximity/Makefile                |    3 +-
 drivers/iio/proximity/sx9310.c                |  630 +---------
 drivers/iio/proximity/sx9324.c                | 1090 +++++++++++++++++
 drivers/iio/proximity/sx_common.c             |  618 ++++++++++
 include/linux/iio/proximity/sx_common.h       |  129 ++
 19 files changed, 2081 insertions(+), 594 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml
 create mode 100644 drivers/iio/proximity/sx9324.c
 create mode 100644 drivers/iio/proximity/sx_common.c
 create mode 100644 include/linux/iio/proximity/sx_common.h