OSDN Git Service

iio: adc: max1118: Use devm_ managed functions for all of probe
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 May 2021 17:25:15 +0000 (18:25 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Jun 2021 17:24:14 +0000 (18:24 +0100)
commit30b527dd4fc50db0490d8e3e30b37cafd6302cf7
tree2a0221ad231f5ad1561f12eef44987799665d8d5
parent7169a78e398463df9201939b51935dc17b53f422
iio: adc: max1118: Use devm_ managed functions for all of probe

This simplifies error handling and allows us to drop the remove
function entirely.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210516172520.1398835-4-jic23@kernel.org
drivers/iio/adc/max1118.c