aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKory Maincent <kory.maincent@bootlin.com>2025-01-10 10:40:24 +0100
committerPaolo Abeni <pabeni@redhat.com>2025-01-14 13:56:32 +0100
commit4c2bab507eb7edc8e497e91b9b7f05d76d7e32bb (patch)
treeede1818bfecd9ecb002c186dca547164d2b85b8a /tools/perf/scripts/python
parentnet: pse-pd: tps23881: Simplify function returns by removing redundant checks (diff)
downloadlinux-4c2bab507eb7edc8e497e91b9b7f05d76d7e32bb.tar.gz
linux-4c2bab507eb7edc8e497e91b9b7f05d76d7e32bb.zip
net: pse-pd: tps23881: Use helpers to calculate bit offset for a channel
This driver frequently follows a pattern where two registers are read or written in a single operation, followed by calculating the bit offset for a specific channel. Introduce helpers to streamline this process and reduce code redundancy, making the codebase cleaner and more maintainable. Acked-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions