projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a0a94
)
i2c: designware: constify abort_sources
author
Raag Jadav
<raag.jadav@intel.com>
Mon, 22 Jan 2024 03:31:07 +0000
(09:01 +0530)
committer
Andi Shyti
<andi.shyti@kernel.org>
Sun, 17 Nov 2024 10:58:14 +0000
(11:58 +0100)
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>
drivers/i2c/busses/i2c-designware-common.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-designware-common.c
b/drivers/i2c/busses/i2c-designware-common.c
index
5dda3c6
..
443f946
100644
(file)
--- a/
drivers/i2c/busses/i2c-designware-common.c
+++ b/
drivers/i2c/busses/i2c-designware-common.c
@@
-33,7
+33,7
@@
#include "i2c-designware-core.h"
-static c
har *
abort_sources[] = {
+static c
onst char *const
abort_sources[] = {
[ABRT_7B_ADDR_NOACK] =
"slave address not acknowledged (7bit mode)",
[ABRT_10ADDR1_NOACK] =