]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: health: afe4403: Do not store dev pointer in device struct
authorAndrew Davis <afd@ti.com>
Wed, 13 Aug 2025 22:58:35 +0000 (17:58 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 12:53:31 +0000 (13:53 +0100)
commita57d6b855041ecb9c45b5b973a18d1fff611b95f
tree2f8171512fd0e0823107b32875a29bbbbeac5560
parent2c748d2783a0ce7259901dee17b83a273fc54d4a
iio: health: afe4403: Do not store dev pointer in device struct

The device *dev is only used in probe(), so no need to store it
in the device local data struct. In all the places in probe()
we did use that, just use a new local variable for the same.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://patch.msgid.link/20250813225840.576305-1-afd@ti.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/health/afe4403.c