Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: designware: constify abort_sources

We never modify abort_sources, mark it as const.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>

authored by

Raag Jadav and committed by
Andi Shyti
1953ebef 32a0a94a

+1 -1
+1 -1
drivers/i2c/busses/i2c-designware-common.c
··· 33 33 34 34 #include "i2c-designware-core.h" 35 35 36 - static char *abort_sources[] = { 36 + static const char *const abort_sources[] = { 37 37 [ABRT_7B_ADDR_NOACK] = 38 38 "slave address not acknowledged (7bit mode)", 39 39 [ABRT_10ADDR1_NOACK] =