iio: light: adjd_s311: convert probe to device-managed functions
authorAlexandru Ardelean <aardelean@deviqon.com>
Mon, 5 Jul 2021 07:14:56 +0000 (10:14 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Jul 2021 17:44:18 +0000 (18:44 +0100)
commitbb761e722f6dff05b94bdfff8a7209a442f220ff
tree66bdf78dc9d6d71ca7f8eb469ea0f61f096d5a44
parent2427a7e95ca9c72807f5cf57afee093eeccb79d3
iio: light: adjd_s311: convert probe to device-managed functions

Now that the driver's buffer is stored on the adjd_s311_data private
object, the driver is a simple conversion to use only device-managed
functions in the probe.

The iio_triggered_buffer_setup() and iio_device_register() functions are
the only ones needing conversion.
And i2c_set_clientdata() is no longer required.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210705071456.649659-2-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/adjd_s311.c