mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
extcon: Remove optional print_name() function pointer of extcon_dev
This patch removes the optional print_name() function pointer included in 'struct extcon_dev' because the extcon must maintain the consistent name of extcon device on sysfs instead of inconsistent name. After merged patch[1], extcon can maintain the consistent name of extcon device without any hard-coded device name. [1] https://lkml.org/lkml/2015/4/27/258 Signed-off-by: Chanwoo Choi <[email protected]>
This commit is contained in:
parent
046050f6e6
commit
f8df880811
2 changed files with 0 additions and 11 deletions
|
|
@ -207,14 +207,6 @@ static ssize_t name_show(struct device *dev, struct device_attribute *attr,
|
|||
{
|
||||
struct extcon_dev *edev = dev_get_drvdata(dev);
|
||||
|
||||
/* Optional callback given by the user */
|
||||
if (edev->print_name) {
|
||||
int ret = edev->print_name(edev, buf);
|
||||
|
||||
if (ret >= 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return sprintf(buf, "%s\n", edev->name);
|
||||
}
|
||||
static DEVICE_ATTR_RO(name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue