From: Chanwoo Choi Date: Mon, 26 Dec 2016 11:47:13 +0000 (+0900) Subject: extcon: adc-jack: Use the internal data instead of using struct extcon_dev X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e3a7e89ff1a13d6e09f63ce9eff4ad3fad7b544;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git extcon: adc-jack: Use the internal data instead of using struct extcon_dev This patch uses the internal dev instance instead of using the field of struct extcon_dev because the core structure (extcon_dev) of extcon have to be touched by only extcon core driver. Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c index bc538708c753..6f6537ab0a79 100644 --- a/drivers/extcon/extcon-adc-jack.c +++ b/drivers/extcon/extcon-adc-jack.c @@ -67,7 +67,7 @@ static void adc_jack_handler(struct work_struct *work) ret = iio_read_channel_raw(data->chan, &adc_val); if (ret < 0) { - dev_err(&data->edev->dev, "read channel() error: %d\n", ret); + dev_err(data->dev, "read channel() error: %d\n", ret); return; }