projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f556bd
)
extcon: adc-jack: Use the internal data instead of using struct extcon_dev
author
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 26 Dec 2016 11:47:13 +0000
(20:47 +0900)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 9 Jan 2017 01:04:11 +0000
(10:04 +0900)
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>
drivers/extcon/extcon-adc-jack.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/extcon/extcon-adc-jack.c
b/drivers/extcon/extcon-adc-jack.c
index bc538708c75370a61ac83b9331e0bf1dd6aea810..6f6537ab0a7911e5dbfaaee5e2f2794326588838 100644
(file)
--- 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;
}