aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-adc-jack.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2013-09-26 20:20:26 -0400
committerChanwoo Choi <cw00.choi@samsung.com>2013-09-26 20:37:01 -0400
commit42d7d7539a7bcf1d493b989465283c464f4a0525 (patch)
treea62b2043514378cabaf629b865612e5019ff29e4 /drivers/extcon/extcon-adc-jack.c
parentdae616512476024aa61d2a598461ab6eff8c0709 (diff)
extcon: Simplify extcon_dev_register() prototype by removing unnecessary parameter
This patch remove extcon_dev_register()'s second parameter which means the pointer of parent device to simplify prototype of this function. So, if extcon device has the parent device, it should set the pointer of parent device to edev.dev.parent in extcon device driver instead of in extcon_dev_register(). Cc: Graeme Gregory <gg@slimlogic.co.uk> Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Cc: Mark Brown <broonie@kernel.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-adc-jack.c')
-rw-r--r--drivers/extcon/extcon-adc-jack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
index dcbade667d0c..e23f1c2e5053 100644
--- a/drivers/extcon/extcon-adc-jack.c
+++ b/drivers/extcon/extcon-adc-jack.c
@@ -110,6 +110,7 @@ static int adc_jack_probe(struct platform_device *pdev)
110 goto out; 110 goto out;
111 } 111 }
112 112
113 data->edev.dev.parent = &pdev->dev;
113 data->edev.supported_cable = pdata->cable_names; 114 data->edev.supported_cable = pdata->cable_names;
114 115
115 /* Check the length of array and set num_cables */ 116 /* Check the length of array and set num_cables */
@@ -148,7 +149,7 @@ static int adc_jack_probe(struct platform_device *pdev)
148 149
149 platform_set_drvdata(pdev, data); 150 platform_set_drvdata(pdev, data);
150 151
151 err = extcon_dev_register(&data->edev, &pdev->dev); 152 err = extcon_dev_register(&data->edev);
152 if (err) 153 if (err)
153 goto out; 154 goto out;
154 155