diff options
author | Alexandru Ardelean <[email protected]> | 2020-11-27 11:40:37 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2020-11-28 13:03:28 +0000 |
commit | b6a3f8326cfddad455d832d4ff9392286280a31c (patch) | |
tree | 78f5a40f63001a844979224d21fb6ecd7c436a32 /scripts/gdb/linux/timerlist.py | |
parent | 617e38a25cbdd672141afff93b1827a99338f502 (diff) |
iio: adc: ad7298: convert probe to device-managed functions
This change converts the probe of this driver to use device-managed
register functions, and a devm_add_action_or_reset() for the regulator
disable.
With this, the exit & error paths can be removed.
Another side-effect is that this should avoid some static-analyzer's check
with respect to a potential null dereference of the regulator. The null
dereference isn't likely to happen (under normal operation), so there isn't
a requirement to have this fixed/backported in other releases.
As a note: this is removing spi_set_drvdata() since there is no other
spi_get_drvdata() (or dev_get_drvdata()) call that need it.
Signed-off-by: Alexandru Ardelean <[email protected]>
Cc: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions