diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2015-05-04 07:20:27 -0400 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-05-19 03:39:06 -0400 |
commit | d71aadda19f83521eca301cb154b81a7bcca78a2 (patch) | |
tree | 61d9d1c407a37f8843cd0d8149c9b56d0d8352f0 /drivers/extcon/extcon-gpio.c | |
parent | 638f958baeaf9d50f42cd09993f518b3a7a0f52e (diff) |
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-gpio.c')
-rw-r--r-- | drivers/extcon/extcon-gpio.c | 1 |
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) | |||
104 | dev_err(&pdev->dev, "failed to allocate extcon device\n"); | 104 | dev_err(&pdev->dev, "failed to allocate extcon device\n"); |
105 | return -ENOMEM; | 105 | return -ENOMEM; |
106 | } | 106 | } |
107 | extcon_data->edev->name = pdata->name; | ||
108 | 107 | ||
109 | extcon_data->gpio = pdata->gpio; | 108 | extcon_data->gpio = pdata->gpio; |
110 | extcon_data->gpio_active_low = pdata->gpio_active_low; | 109 | extcon_data->gpio_active_low = pdata->gpio_active_low; |