extcon: arizona: Remove the setting of device name
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 15 Apr 2015 06:33:44 +0000 (15:33 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 19 May 2015 07:39:05 +0000 (16:39 +0900)
This patch removes the setting of device name. Instead, extcon_dev_register()
set the device name such as 'extcon[number]' naming method.
- /sys/class/extcon/Headset Jack -> /sys/class/extcon/extcon[number]

Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
drivers/extcon/extcon-arizona.c

index 830c5f94bc189ed3cced7a4dd02f93b490046f84..50975b3123d629fa572aa54e4a159dcee429d8d1 100644 (file)
@@ -1185,7 +1185,6 @@ static int arizona_extcon_probe(struct platform_device *pdev)
                dev_err(&pdev->dev, "failed to allocate extcon device\n");
                return -ENOMEM;
        }
-       info->edev->name = "Headset Jack";
 
        ret = devm_extcon_dev_register(&pdev->dev, info->edev);
        if (ret < 0) {