]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f8e207a1f45c7e5449174ff5ff78ff13e5e34c3
tree5aa955a3ed37a7fb10939d4218f719ab43b27b2e
parent97c4ccb492120321fbe69627cb749a0f5ceee084
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