All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] iio: afe/rescale improvements
@ 2022-07-21 19:15 Paul Cercueil
  2022-07-21 19:15 ` [PATCH 1/4] iio: inkern: Remove useless argument to iio_channel_read_max() Paul Cercueil
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Paul Cercueil @ 2022-07-21 19:15 UTC (permalink / raw)
  To: Jonathan Cameron, Peter Rosin
  Cc: Lars-Peter Clausen, list, linux-iio, linux-kernel, Paul Cercueil

Hi Jonathan,

This patchset adds support for converting the "scale avail" list that
may be provided by the source drivers. It also implements the
.write_raw() callback.

These two features will later be used by the
(drivers/power/supply/ingenic-battery.c) driver, which will pick the
best scale possible for the battery's max voltage (it's already
implemented in there, but doesn't yet support iio-rescale being in the
middle).

As you suggested after my RFC I added support for a new
IIO_AVAIL_LIST_WITH_TYPE and it's been a perfect solution, so thank you
for that.

Cheers,
-Paul

Paul Cercueil (4):
  iio: inkern: Remove useless argument to iio_channel_read_max()
  iio: core: Add support for IIO_AVAIL_LIST_WITH_TYPE
  iio: afe/rescale: Add support for converting scale avail table
  iio: afe/rescale: Implement write_raw

 drivers/iio/afe/iio-rescale.c   | 107 ++++++++++++++++++++++++++++++++
 drivers/iio/industrialio-core.c |  25 ++++++++
 drivers/iio/inkern.c            |  35 +++++++++--
 include/linux/iio/afe/rescale.h |   2 +
 include/linux/iio/consumer.h    |   6 +-
 include/linux/iio/types.h       |   1 +
 6 files changed, 168 insertions(+), 8 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-07-31 17:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-21 19:15 [PATCH 0/4] iio: afe/rescale improvements Paul Cercueil
2022-07-21 19:15 ` [PATCH 1/4] iio: inkern: Remove useless argument to iio_channel_read_max() Paul Cercueil
2022-07-31 17:07   ` Jonathan Cameron
2022-07-21 19:15 ` [PATCH 2/4] iio: core: Add support for IIO_AVAIL_LIST_WITH_TYPE Paul Cercueil
2022-07-31 17:22   ` Jonathan Cameron
2022-07-21 19:15 ` [PATCH 3/4] iio: afe/rescale: Add support for converting scale avail table Paul Cercueil
2022-07-21 22:16   ` Peter Rosin
2022-07-22  8:52     ` Paul Cercueil
2022-07-31 16:58       ` Jonathan Cameron
2022-07-21 19:15 ` [PATCH 4/4] iio: afe/rescale: Implement write_raw Paul Cercueil
2022-07-21 22:16   ` Peter Rosin
2022-07-22  9:33     ` Paul Cercueil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.