aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-gpio.c
diff options
context:
space:
mode:
authorChanwoo Choi <[email protected]>2015-05-04 11:20:27 +0000
committerChanwoo Choi <[email protected]>2015-05-19 07:39:06 +0000
commitd71aadda19f83521eca301cb154b81a7bcca78a2 (patch)
tree61d9d1c407a37f8843cd0d8149c9b56d0d8352f0 /drivers/extcon/extcon-gpio.c
parentextcon: Allow compile test of GPIO consumers if !GPIOLIB (diff)
downloadkernel-d71aadda19f83521eca301cb154b81a7bcca78a2.tar.gz
kernel-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 <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Cc: MyungJoo Ham <[email protected]> Cc: Charles Keepax <[email protected]> Cc: Graeme Gregory <[email protected]> Cc: Kishon Vijay Abraham I <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Jaewon Kim <[email protected]>
Diffstat (limited to 'drivers/extcon/extcon-gpio.c')
-rw-r--r--drivers/extcon/extcon-gpio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-gpio.c b/drivers/extcon/extcon-gpio.c
index 7af33fc433cd..355459a54e8b 100644
--- a/drivers/extcon/extcon-gpio.c
+++ b/drivers/extcon/extcon-gpio.c
@@ -104,7 +104,6 @@ static int gpio_extcon_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "failed to allocate extcon device\n");
return -ENOMEM;
}
- extcon_data->edev->name = pdata->name;
extcon_data->gpio = pdata->gpio;
extcon_data->gpio_active_low = pdata->gpio_active_low;