diff options
| author | 2026-09-27 20:35:06 +0800 | |
|---|---|---|
| committer | 2026-10-01 14:04:47 +0200 | |
| commit | 8c8dcfd43c31c1059218e756eb1772fb24cb79f6 (patch) | |
| tree | 9ff8b2acd3ea6e6711ef7f4aabce4197eaa67f24 /scripts/Makefile.thinlto | |
| parent | misc: ad525x_dpot: use assign_bit() where applicable (diff) | |
misc: ad525x_dpot: drop redundant drvdata check
ad525x_group is registered through the I2C and SPI drivers' dev_groups.
The driver core creates those groups only after probe succeeds and removes
them before invoking the driver's remove callback. ad_dpot_probe() sets
the driver data before returning successfully, so ad525x_is_visible()
cannot legitimately observe a NULL value.
Drop the redundant check instead of silently hiding every attribute if
the driver lifecycle invariant is ever broken.
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Link: https://patch.msgid.link/20260927123507.1219495-1-yaojiale02@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
