mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
hwmon: (asc7621) make several arrays static const
Don't populate the arrays on the stack, instead make them static. Makes the object code smaller by over 950 bytes: Before: text data bss dec hex filename 26144 18768 352 45264 b0d0 drivers/hwmon/asc7621.o After: text data bss dec hex filename 25029 18928 352 44309 ad15 drivers/hwmon/asc7621.o Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
5783ec2e5c
commit
6930125858
1 changed files with 2 additions and 2 deletions
|
|
@ -512,7 +512,7 @@ static ssize_t show_pwm_ac(struct device *dev,
|
|||
{
|
||||
SETUP_SHOW_DATA_PARAM(dev, attr);
|
||||
u8 config, altbit, regval;
|
||||
const u8 map[] = {
|
||||
static const u8 map[] = {
|
||||
0x01, 0x02, 0x04, 0x1f, 0x00, 0x06, 0x07, 0x10,
|
||||
0x08, 0x0f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f
|
||||
};
|
||||
|
|
@ -533,7 +533,7 @@ static ssize_t store_pwm_ac(struct device *dev,
|
|||
SETUP_STORE_DATA_PARAM(dev, attr);
|
||||
unsigned long reqval;
|
||||
u8 currval, config, altbit, newval;
|
||||
const u16 map[] = {
|
||||
static const u16 map[] = {
|
||||
0x04, 0x00, 0x01, 0xff, 0x02, 0xff, 0x05, 0x06,
|
||||
0x08, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f,
|
||||
0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
|
|
|
|||
Loading…
Reference in a new issue