[PATCH v2 03/11] i2c: nomadik: rename private struct pointers from dev to priv
Wolfram Sang
wsa at kernel.org
Mon Mar 4 01:13:39 PST 2024
On Thu, Feb 29, 2024 at 07:10:51PM +0100, Théo Lebrun wrote:
> 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).
>
> Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
> Signed-off-by: Théo Lebrun <theo.lebrun at bootlin.com>
I think this improves readability a lot. I didn't really review, but I
do like such changes:
Acked-by: Wolfram Sang <wsa+renesas at sang-engineering.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240304/2e6d9a34/attachment.sig>
More information about the linux-arm-kernel
mailing list