aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-dwc-core.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-07-05 08:06:46 +0000
committerThierry Reding <[email protected]>2023-10-13 08:07:17 +0000
commit06cc4767750337ad162a0a7bcfd6f6eff6e0fe92 (patch)
tree8c9265ec5aaeeb8c79f68a5a1777b6f2a0fb8a62 /drivers/pwm/pwm-dwc-core.c
parentpwm: jz4740: Put per-channel clk into driver data (diff)
downloadkernel-06cc4767750337ad162a0a7bcfd6f6eff6e0fe92.tar.gz
kernel-06cc4767750337ad162a0a7bcfd6f6eff6e0fe92.zip
pwm: lp3943: Drop usage of pwm_[gs]et_chip_data()
Instead of distributing the driver's bookkeeping over 3 (i.e. LP3943_NUM_PWMS + 1) separately allocated memory chunks, put all together in struct lp3943_pwm. This reduces the number of memory allocations and so fragmentation and maybe even the number of cache misses. Also &lp3943_pwm->pwm_map[pwm->hwpwm] is cheaper to evaluate than pwm_get_chip_data(pwm) as the former is just an addition in machine code while the latter involves a function call. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-dwc-core.c')
0 files changed, 0 insertions, 0 deletions