Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1547469

[PATCH 1/2] extcon: adc-jack: Use the internal data instead of using struct extcon_dev

From Chanwoo Choi <cw00.choi@samsung.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] extcon: adc-jack: Use the internal data instead of using struct extcon_dev
Date 2016-12-27 03:50 +0100
Message-ID <sSPZT-4zE-3@gated-at.bofh.it> (permalink)
References <sSPZT-4zE-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}
 
-- 
1.9.1

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] extcon: adc-jack: Use the internal data instead of using  struct extcon_dev Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-27 03:50 +0100
  [PATCH 2/2] extcon: Move defintion of struct extcon_dev to  driver/extcon directory Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-27 03:50 +0100

csiph-web