Skip to content

Commit 1953ebe

Browse files
raagjadavAndi Shyti
authored andcommitted
i2c: designware: constify abort_sources
We never modify abort_sources, mark it as const. Signed-off-by: Raag Jadav <[email protected]> Acked-by: Jarkko Nikula <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 32a0a94 commit 1953ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-designware-common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
#include "i2c-designware-core.h"
3535

36-
static char *abort_sources[] = {
36+
static const char *const abort_sources[] = {
3737
[ABRT_7B_ADDR_NOACK] =
3838
"slave address not acknowledged (7bit mode)",
3939
[ABRT_10ADDR1_NOACK] =

0 commit comments

Comments
 (0)