All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][next] iio: adc: make read-only const array config static
@ 2026-07-14 16:50 Colin Ian King
  2026-07-14 17:08 ` Andy Shevchenko
  2026-07-14 17:40 ` David Lechner
  0 siblings, 2 replies; 7+ messages in thread
From: Colin Ian King @ 2026-07-14 16:50 UTC (permalink / raw)
  To: Duje Mihanović, Jonathan Cameron, David Lechner,
	Nuno Sá, Andy Shevchenko, linux-iio
  Cc: kernel-janitors, linux-kernel

Don't populate the read-only const array config on the stack at run
time, instead make it static.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/iio/adc/88pm886-gpadc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/88pm886-gpadc.c b/drivers/iio/adc/88pm886-gpadc.c
index ff9bc5f06c18..938ba43c2c35 100644
--- a/drivers/iio/adc/88pm886-gpadc.c
+++ b/drivers/iio/adc/88pm886-gpadc.c
@@ -279,7 +279,7 @@ static int pm886_gpadc_read_raw(struct iio_dev *iio, struct iio_chan_spec const
 
 static int pm886_gpadc_hw_enable(struct regmap *map)
 {
-	const u8 config[] = {
+	static const u8 config[] = {
 		PM886_GPADC_CONFIG1_EN_ALL,
 		PM886_GPADC_CONFIG2_EN_ALL,
 		PM886_GPADC_GND_DET2_EN,
-- 
2.53.0


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

end of thread, other threads:[~2026-07-15 13:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-14 16:50 [PATCH][next] iio: adc: make read-only const array config static Colin Ian King
2026-07-14 17:08 ` Andy Shevchenko
2026-07-15 10:07   ` David Laight
2026-07-15 10:22   ` Dan Carpenter
2026-07-15 13:32     ` Andy Shevchenko
2026-07-15 13:34       ` Colin King (gmail)
2026-07-14 17:40 ` David Lechner

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.