summaryrefslogtreecommitdiffstats
path: root/drivers/misc/sram-exec.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2017-12-18 18:24:43 +0100
committerBartosz Golaszewski <brgl@bgdev.pl>2018-01-01 19:40:49 +0100
commiteef6939849b04bb1ba36f35f5c864eb0a66d1d83 (patch)
treed477a04dd4a343eb56b24e7d794596838a378686 /drivers/misc/sram-exec.c
parenteeprom: at24: use a common prefix for all symbols in at24.c (diff)
downloadlinux-eef6939849b04bb1ba36f35f5c864eb0a66d1d83.tar.xz
linux-eef6939849b04bb1ba36f35f5c864eb0a66d1d83.zip
eeprom: at24: code shrink
A regmap_config struct is pretty big and declaring two of them statically just to tweak the reg_bits value adds unnecessary bloat. Declare the regmap config locally in at24_probe() instead. Bloat-o-meter output for ARM: add/remove: 0/2 grow/shrink: 1/0 up/down: 4/-272 (-268) Function old new delta at24_probe 1560 1564 +4 regmap_config_8 136 - -136 regmap_config_16 136 - -136 Total: Before=7012, After=6744, chg -3.82% Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers/misc/sram-exec.c')
0 files changed, 0 insertions, 0 deletions