diff options
author | Uwe Kleine-König <[email protected]> | 2024-09-23 14:54:17 +0200 |
---|---|---|
committer | Uwe Kleine-König <[email protected]> | 2024-10-25 11:33:34 +0200 |
commit | 22f032c7900ca457f4facdd711eee61c9648c7c1 (patch) | |
tree | bb3f961efdfbb317605aee0f972ae582778009c2 /tools/perf/scripts/python/parallel-perf.py | |
parent | 51f8137022752c8bab2621e8ee461c5af3dccf52 (diff) |
pwm: axi-pwmgen: Create a dedicated function for getting driver data from a chip
Compared to direct calls to pwmchip_get_drvdata() a dedicated function
has two upsides: A better name and the right type. So the code becomes
easier to read and the new function is harder to use wrongly.
Another side effect (which is the secret motivation for this patch, but
shhh) is that the driver becomes a bit easier to backport to kernel
versions that don't have devm_pwmchip_alloc() yet.
Signed-off-by: Uwe Kleine-König <[email protected]>
Reviewed-by: Trevor Gamblin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ukleinek: added an * to the new function's prototype to make the compiler happy]
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions