diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-09-27 20:35:06 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-10-01 14:04:47 +0200 |
| commit | 8c8dcfd43c31c1059218e756eb1772fb24cb79f6 (patch) | |
| tree | 9ff8b2acd3ea6e6711ef7f4aabce4197eaa67f24 /tools/lib/python/kdoc/python_version.py | |
| parent | f3ada175eb1e0168a9c8a9d43d4a3a9a6782ffb7 (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 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
