summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-adc-jack.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2013-09-27 02:19:40 +0200
committerChanwoo Choi <cw00.choi@samsung.com>2013-09-27 02:37:01 +0200
commitdae616512476024aa61d2a598461ab6eff8c0709 (patch)
tree8fbc98fef0beb28f8dbc334624bd63cde45b2101 /drivers/extcon/extcon-adc-jack.c
parentextcon: arizona: Don't require micbias to be shifted in pdata (diff)
downloadlinux-dae616512476024aa61d2a598461ab6eff8c0709.tar.xz
linux-dae616512476024aa61d2a598461ab6eff8c0709.zip
extcon: Change field type of 'dev' in extcon_dev structure
The extcon device must always need 'struct device' so this patch change field type of 'dev' instead of allocating memory for 'struct device' on extcon_dev_register() function. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Myungjoo Ham <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-adc-jack.c')
-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 5694c468b958..dcbade667d0c 100644
--- a/drivers/extcon/extcon-adc-jack.c
+++ b/drivers/extcon/extcon-adc-jack.c
@@ -64,7 +64,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->edev.dev, "read channel() error: %d\n", ret);
return;
}