summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stmpe.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-11-30 08:21:06 +0100
committerThierry Reding <thierry.reding@gmail.com>2023-12-20 16:24:44 +0100
commitefb704abedc7168cee8068da08eb2ca8c1eb1893 (patch)
tree8a6c76b90b00c53cb71d695b6ec19a04f9a48578 /drivers/pwm/pwm-stmpe.c
parentpwm: crc: Use consistent variable naming for driver data (diff)
downloadlinux-efb704abedc7168cee8068da08eb2ca8c1eb1893.tar.xz
linux-efb704abedc7168cee8068da08eb2ca8c1eb1893.zip
pwm: Reduce number of pointer dereferences in pwm_device_request()
pwm->chip and pwm->chip->ops are used several times in this function. Introduce local variables for these. There is no semantical change, but with ARCH=arm, allmodconfig and gcc-13 bloat-o-meter reports a slight improvement: add/remove: 1/1 grow/shrink: 1/1 up/down: 8/-36 (-28) Function old new delta pwm_apply_state 476 480 +4 __initcall__kmod_core__307_1092_pwm_debugfs_init4 - 4 +4 __initcall__kmod_core__307_1090_pwm_debugfs_init4 4 - -4 pwm_request_from_chip 628 596 -32 Total: Before=15091, After=15063, chg -0.19% Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-stmpe.c')
0 files changed, 0 insertions, 0 deletions