mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: adc: ad7124: Implement input validation
@ 2024-11-18 11:19 Uwe Kleine-König
  2024-11-18 11:19 ` [PATCH v2 1/2] iio: adc: ad7124: Don't create more channels than the driver can handle Uwe Kleine-König
  2024-11-18 11:19 ` [PATCH v2 2/2] iio: adc: ad7124: Refuse invalid input specifiers Uwe Kleine-König
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2024-11-18 11:19 UTC (permalink / raw)
  To: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron
  Cc: linux-iio, linux-kernel

Hello,

(implicit) v1 of the series can be found at
https://lore.kernel.org/linux-iio/20241108181813.272593-4-u.kleine-koenig@baylibre.com.
This v2 bases on v6.12-rc1 + commit 64612ec9b909 ("iio: adc: ad7124:
Disable all channels at probe time") which is already in next.

Changes since v1:

 - reword commit log of patch #1 to honestly tell that the maximal
   number of logical channels is a limitation of the current driver
   implementation (and not one imposed by hardware).

 - Make the driver explicitly fail to load if > 16 channels are defined.
   v1 only limited the maximal channel address which then later yielded
   a probe failure on the first channel exeeding that maximum.

 - in patch #2 fix "passing zero to 'dev_err_probe'" as reported by
   smatch + Dan Carpenter.

 - Fix my address in patch #2's S-o-b trailer.

Uwe Kleine-König (2):
  iio: adc: ad7124: Don't create more channels than the driver can
    handle
  iio: adc: ad7124: Refuse invalid input specifiers

 drivers/iio/adc/ad7124.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

base-commit: 9852d85ec9d492ebef56dc5f229416c925758edc
prerequisite-patch-id: 617af17fc377a984762c61893b9f2a92ae62213a
-- 
2.45.2


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

end of thread, other threads:[~2024-11-18 11:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-18 11:19 [PATCH v2 0/2] iio: adc: ad7124: Implement input validation Uwe Kleine-König
2024-11-18 11:19 ` [PATCH v2 1/2] iio: adc: ad7124: Don't create more channels than the driver can handle Uwe Kleine-König
2024-11-18 11:19 ` [PATCH v2 2/2] iio: adc: ad7124: Refuse invalid input specifiers Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®