i2c: nomadik: rename private struct pointers from dev to priv
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 6 Mar 2024 17:59:22 +0000 (18:59 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Fri, 8 Mar 2024 22:41:45 +0000 (23:41 +0100)
commitae9977eefc4a1e6e8fda619f5b8734efb6f11b58
tree2974a001b313730ddde40e557073f2bb8ea25b99
parent1b9a8e8af0d969ad8f2deece827e691a1b07ba1b
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>
drivers/i2c/busses/i2c-nomadik.c