diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2018-02-12 14:46:28 -0500 |
|---|---|---|
| committer | Chanwoo Choi <cw00.choi@samsung.com> | 2018-02-12 16:49:44 -0500 |
| commit | 5b4e64beb6ab40f5d8b44500fe0fc201c25a0f16 (patch) | |
| tree | 8c1db507f3e63f59901d00cb3eb0d5685d353e50 /drivers/extcon | |
| parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
extcon: axp288: Constify the axp288_pwr_up_down_info array
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 <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
| -rw-r--r-- | drivers/extcon/extcon-axp288.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index 0a44d43802fe..c8f7b6435679 100644 --- a/drivers/extcon/extcon-axp288.c +++ b/drivers/extcon/extcon-axp288.c | |||
| @@ -106,7 +106,7 @@ struct axp288_extcon_info { | |||
| 106 | }; | 106 | }; |
| 107 | 107 | ||
| 108 | /* Power up/down reason string array */ | 108 | /* Power up/down reason string array */ |
| 109 | static char *axp288_pwr_up_down_info[] = { | 109 | static const char * const axp288_pwr_up_down_info[] = { |
| 110 | "Last wake caused by user pressing the power button", | 110 | "Last wake caused by user pressing the power button", |
| 111 | "Last wake caused by a charger insertion", | 111 | "Last wake caused by a charger insertion", |
| 112 | "Last wake caused by a battery insertion", | 112 | "Last wake caused by a battery insertion", |
| @@ -124,7 +124,7 @@ static char *axp288_pwr_up_down_info[] = { | |||
| 124 | */ | 124 | */ |
| 125 | static void axp288_extcon_log_rsi(struct axp288_extcon_info *info) | 125 | static void axp288_extcon_log_rsi(struct axp288_extcon_info *info) |
| 126 | { | 126 | { |
| 127 | char **rsi; | 127 | const char * const *rsi; |
| 128 | unsigned int val, i, clear_mask = 0; | 128 | unsigned int val, i, clear_mask = 0; |
| 129 | int ret; | 129 | int ret; |
| 130 | 130 | ||
