summaryrefslogtreecommitdiff
path: root/drivers/extcon
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-05-27 17:06:30 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2015-05-29 13:56:11 +0300
commitf8df88081183bd4d3c461c617c3519445eb85642 (patch)
treec710005e6749611c2f6c23f7982e61a82d8defba /drivers/extcon
parent046050f6e623e442e9c71c525462ebd395dae526 (diff)
downloadlinux-f8df88081183bd4d3c461c617c3519445eb85642.tar.xz
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 <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index 5099c11d8833..fafd428cae7f 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -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);