]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: rtl9300: use of instead of fwnode
authorRosen Penev <rosenp@gmail.com>
Wed, 17 Dec 2025 06:30:27 +0000 (22:30 -0800)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 15 Jan 2026 17:30:27 +0000 (18:30 +0100)
commitf6551f7861aca09cb2fdf675d6bb9ca2ffa9038a
tree86c200fbb815d43cc9fece2b0227957c2c1a516c
parentfc31008d5f57e71afa124550ca01b4399434435e
i2c: rtl9300: use of instead of fwnode

Avoids having to use to_of_node and just assign directly. This is an OF
only driver anyway.

Use _scoped for the for each loop to avoid refcount leaks.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20251217063027.37987-3-rosenp@gmail.com
drivers/i2c/busses/i2c-rtl9300.c