summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-adc-jack.c
diff options
context:
space:
mode:
authorChanwoo Choi2015-05-04 13:20:27 +0200
committerChanwoo Choi2015-05-19 09:39:06 +0200
commitd71aadda19f83521eca301cb154b81a7bcca78a2 (patch)
tree61d9d1c407a37f8843cd0d8149c9b56d0d8352f0 /drivers/extcon/extcon-adc-jack.c
parentextcon: Allow compile test of GPIO consumers if !GPIOLIB (diff)
downloadkernel-qcow2-linux-d71aadda19f83521eca301cb154b81a7bcca78a2.tar.gz
kernel-qcow2-linux-d71aadda19f83521eca301cb154b81a7bcca78a2.tar.xz
kernel-qcow2-linux-d71aadda19f83521eca301cb154b81a7bcca78a2.zip
extcon: Remove the optional name of extcon device
This patch removes the optional name of extcon device. Instead, extcon_dev_register() set the device name as 'extcon[number]' naming pattern. - /sys/class/extcon/[hardcoded device name] -> /sys/class/extcon/extcon[number] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: MyungJoo Ham <myungjoo.ham@samsung.com> Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Cc: Graeme Gregory <gg@slimlogic.co.uk> Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: Jaewon Kim <jaewon02.kim@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-adc-jack.c')
-rw-r--r--drivers/extcon/extcon-adc-jack.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
index 768eaed66380..5bf08ec1cacf 100644
--- a/drivers/extcon/extcon-adc-jack.c
+++ b/drivers/extcon/extcon-adc-jack.c
@@ -110,7 +110,6 @@ static int adc_jack_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "failed to allocate extcon device\n");
return -ENOMEM;
}
- data->edev->name = pdata->name;
if (!pdata->adc_conditions ||
!pdata->adc_conditions[0].state) {