projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7928b2c
)
extcon: axp288: Constify the axp288_pwr_up_down_info array
author
Hans de Goede
<
[email protected]
>
Mon, 12 Feb 2018 19:46:28 +0000
(20:46 +0100)
committer
Chanwoo Choi
<
[email protected]
>
Mon, 12 Feb 2018 21:49:44 +0000
(06:49 +0900)
Make the axp288_pwr_up_down_info array const char * const, this leads
to the following section size changes:
.text 0x674 -> 0x664
.data 0x148 -> 0x0f0
.rodata 0x0b4 -> 0x114
Signed-off-by: Hans de Goede <
[email protected]
>
Signed-off-by: Chanwoo Choi <
[email protected]
>
drivers/extcon/extcon-axp288.c
patch
|
blob
|
history
diff --git
a/drivers/extcon/extcon-axp288.c
b/drivers/extcon/extcon-axp288.c
index 0a44d43802fe1221971d5e61fc0810e2090627cc..c8f7b6435679f1ee38f5f5c7fdffe3dc3249401d 100644
(file)
--- a/
drivers/extcon/extcon-axp288.c
+++ b/
drivers/extcon/extcon-axp288.c
@@
-106,7
+106,7
@@
struct axp288_extcon_info {
};
/* Power up/down reason string array */
-static c
har *
axp288_pwr_up_down_info[] = {
+static c
onst char * const
axp288_pwr_up_down_info[] = {
"Last wake caused by user pressing the power button",
"Last wake caused by a charger insertion",
"Last wake caused by a battery insertion",
@@
-124,7
+124,7
@@
static char *axp288_pwr_up_down_info[] = {
*/
static void axp288_extcon_log_rsi(struct axp288_extcon_info *info)
{
- c
har *
*rsi;
+ c
onst char * const
*rsi;
unsigned int val, i, clear_mask = 0;
int ret;