linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/2] i2c: designware: constify abort_sources
@ 2024-01-22  3:31 Raag Jadav
  2024-01-22  3:31 ` [PATCH v1 2/2] i2c: designware: constify regmap_config Raag Jadav
  2024-10-02  9:18 ` [PATCH v1 1/2] i2c: designware: constify abort_sources Andi Shyti
  0 siblings, 2 replies; 7+ messages in thread
From: Raag Jadav @ 2024-01-22  3:31 UTC (permalink / raw)
  To: jarkko.nikula, mika.westerberg, andriy.shevchenko, jsd,
	andi.shyti
  Cc: linux-i2c, linux-kernel, Raag Jadav

We never modify abort_sources, mark it as const.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
 drivers/i2c/busses/i2c-designware-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-designware-common.c b/drivers/i2c/busses/i2c-designware-common.c
index affcfb243f0f..39c956b0a72d 100644
--- a/drivers/i2c/busses/i2c-designware-common.c
+++ b/drivers/i2c/busses/i2c-designware-common.c
@@ -28,7 +28,7 @@
 
 #include "i2c-designware-core.h"
 
-static char *abort_sources[] = {
+static const char *const abort_sources[] = {
 	[ABRT_7B_ADDR_NOACK] =
 		"slave address not acknowledged (7bit mode)",
 	[ABRT_10ADDR1_NOACK] =
-- 
2.35.3


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

end of thread, other threads:[~2024-10-03  2:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-22  3:31 [PATCH v1 1/2] i2c: designware: constify abort_sources Raag Jadav
2024-01-22  3:31 ` [PATCH v1 2/2] i2c: designware: constify regmap_config Raag Jadav
2024-01-22  9:44   ` Jarkko Nikula
2024-02-08 10:46     ` Raag Jadav
2024-03-04  7:58       ` Raag Jadav
2024-10-02  9:18 ` [PATCH v1 1/2] i2c: designware: constify abort_sources Andi Shyti
2024-10-03  2:58   ` Raag Jadav

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).