iio: dac: ad5592r: remove usage of iio_priv_to_dev() helper
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 25 May 2020 13:10:34 +0000 (16:10 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:47 +0000 (11:49 +0100)
commit723151a2401afdcee4f53ae92775902b58ee0469
tree5aa955a3ed37a7fb10939d4218f719ab43b27b2e
parent812a46b7ff8f77f44ad3d9867b3525b4e0804f70
iio: dac: ad5592r: remove usage of iio_priv_to_dev() helper

This was partially removed when the mlock cleanup was done. Only one more
call is left in the ad5592r_alloc_channels() function.
This one is simple. We just need to pass the iio_dev object and get the
state via iio_priv().

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5592r-base.c