linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Expand Semtech SAR Sensors support
@ 2021-10-30 11:18 Gwendal Grignou
  2021-10-30 11:18 ` [PATCH 1/5] iio: Use .realbits to extend a small signed integer Gwendal Grignou
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Gwendal Grignou @ 2021-10-30 11:18 UTC (permalink / raw)
  To: jic23, lars, swboyd; +Cc: andy.shevchenko, linux-iio, Gwendal Grignou

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

-- 
2.33.1.1089.g2158813163f-goog


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-11-04 18:10 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30 11:18 [PATCH 0/5] Expand Semtech SAR Sensors support Gwendal Grignou
2021-10-30 11:18 ` [PATCH 1/5] iio: Use .realbits to extend a small signed integer Gwendal Grignou
2021-10-30 11:35   ` Lars-Peter Clausen
2021-10-30 16:09     ` Jonathan Cameron
2021-11-01  7:30       ` Gwendal Grignou
2021-10-30 11:18 ` [PATCH 2/5] iio: sx9310: Extract common Semtech sensor logic Gwendal Grignou
2021-10-30 11:40   ` Lars-Peter Clausen
2021-10-30 16:42   ` Jonathan Cameron
2021-10-30 11:18 ` [PATCH 3/5] iio: proximity: Add SX9324 support Gwendal Grignou
2021-10-30 11:56   ` Lars-Peter Clausen
2021-10-30 17:04   ` Jonathan Cameron
2021-11-04  7:15     ` Gwendal Grignou
2021-11-04 18:15       ` Jonathan Cameron
2021-10-30 11:18 ` [PATCH 4/5] dt-bindings: iio: Add sx9324 binding Gwendal Grignou
2021-10-30 17:24   ` Jonathan Cameron
2021-11-04  7:16     ` Gwendal Grignou
2021-11-04 18:13       ` Jonathan Cameron
2021-10-30 11:18 ` [PATCH 5/5] iio: sx9324: Add dt_bidding support Gwendal Grignou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).