diff options
author | Théo Lebrun <theo.lebrun@bootlin.com> | 2024-03-06 18:59:22 +0100 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2024-03-08 23:41:45 +0100 |
commit | ae9977eefc4a1e6e8fda619f5b8734efb6f11b58 (patch) | |
tree | 2974a001b313730ddde40e557073f2bb8ea25b99 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | 1b9a8e8af0d969ad8f2deece827e691a1b07ba1b (diff) |
i2c: nomadik: rename private struct pointers from dev to priv
Disambiguate the usage of dev as a variable name; it is usually best to
keep it reserved for struct device pointers. Avoid having multiple
names for the same struct pointer (previously: dev, nmk, nmk_i2c).
Fix whitespace code style; return indented twice, spacing besides infix
operators, align function call arguments to opening parenthesis. Remove
useless cast to unused return value from init_hw(). Introduce local dev
variable in probe() to alias &adev->dev.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions