summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2016-12-26 20:47:13 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2017-01-09 10:04:11 +0900
commit6e3a7e89ff1a13d6e09f63ce9eff4ad3fad7b544 (patch)
treea589ac9429c273ec2143da7e9544a2e770d0fff8 /drivers/extcon
parent2f556bdb9f2e3794722c0d9186db9799b35071c4 (diff)
downloadop-kernel-dev-6e3a7e89ff1a13d6e09f63ce9eff4ad3fad7b544.zip
op-kernel-dev-6e3a7e89ff1a13d6e09f63ce9eff4ad3fad7b544.tar.gz
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 <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon-adc-jack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
index bc53870..6f6537a 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;
}
OpenPOWER on IntegriCloud