diff options
author | Uwe Kleine-König <[email protected]> | 2023-07-05 10:06:43 +0200 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2023-10-13 10:07:17 +0200 |
commit | 1b2af7bb7523a86d0ab1f1a5e8d65063d08c7856 (patch) | |
tree | 1fa13e0ba8b99c36c48dbdebf78b718fe3175332 /net/unix/sysctl_net_unix.c | |
parent | 91a69d38cf97b195fef1a10ea53cf429aa134497 (diff) |
pwm: berlin: Put per-channel config into driver data
Instead of allocating extra data in .request() provide the needed memory
in struct berlin_pwm_chip. This reduces the number of allocations. A
side effect is that on suspend and resume the state for all four
channels is always saved and restored. This is easier (and probably
quicker) than looking up the matching pwm_device and checking its
PWMF_REQUESTED bit.
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 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions