]> git.baikalelectronics.ru Git - kernel.git/commit
iio: exynos_adc: fix wrong structure extration in suspend and resume
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Mon, 20 May 2013 06:34:00 +0000 (07:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 22 May 2013 21:15:20 +0000 (22:15 +0100)
commitc97cc32ada14c4f5ce8c2e720e2f54f4b20dcf8b
treea269890f81aa5b4d50163b92804fc690ce46ccf8
parent6f2478664c597bd12a1343f579f757552d89d3c9
iio: exynos_adc: fix wrong structure extration in suspend and resume

The exynos_adc device structure was wrongly extracted from the dev*
correcting the same.

Using the regular conversion of
struct device* -> struct platform_device* -> struct exynos_adc* seems wrong.
Instead we should be doing
struct device* -> struct iio_dev* -> struct exynos_adc*

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/exynos_adc.c