mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]> Acked-by: Charles Keepax <[email protected]>
This commit is contained in:
1 parent
b9ec23c08a
commit
a71fbc1525
1 file changed
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user