extcon: enable name set for extcon
authorPan Jianxin <jianxin.pan@amlogic.com>
Tue, 27 Jun 2017 09:07:08 +0000 (17:07 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 11 Jul 2017 09:32:56 +0000 (02:32 -0700)
commit5c9ce445965a18debe481f9e0b99e5b1f236549e
tree6831ad1e042c61dc8c26df8889709aa81cadf159
parentd80bb9f7fa30e506a6332992b9fdf5f150b9ee34
extcon: enable name set for extcon

PD#138714: enable name set for extcon
Without this change, name for extcon is always extcon0, extcon1, and
it can't be set by driver.

set extcon name before extcon_dev_register:
edev->name = "xxx";
dev_set_name(&edev->dev, "xxxxxx");

Change-Id: I22efce87f8fb50f1faf71d254cd03fe292ddb035
Signed-off-by: Pan Jianxin <jianxin.pan@amlogic.com>
drivers/extcon/extcon.c