Explorar o código

extcon: arizona: Remove the setting of device name

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>
Chanwoo Choi %!s(int64=10) %!d(string=hai) anos
pai
achega
a71fbc1525
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      drivers/extcon/extcon-arizona.c

+ 0 - 1
drivers/extcon/extcon-arizona.c

@@ -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) {