summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-06-11 20:17:02 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2015-08-10 11:48:55 +0900
commit2519b7650e99d90643a7a20d623513de9c95a817 (patch)
tree1bd74e01d8e4d7f2b23725db9d0fb480212fcd17 /drivers/extcon/extcon.c
parent85a77ff0160ab0a70eb4e8b14200e29b4d35c355 (diff)
downloadlinux-2519b7650e99d90643a7a20d623513de9c95a817.tar.gz
linux-2519b7650e99d90643a7a20d623513de9c95a817.tar.bz2
linux-2519b7650e99d90643a7a20d623513de9c95a817.zip
extcon: Remove optional print_state() function pointer of struct extcon_dev
This patch removes the optional print_state() function pointer which included in 'struct extcon_dev' because the extcon must maintain the consistent name of extcon device on sysfs instead of inconsistent state of external connectors. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon.c')
-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 43b57b02d050..d1fb5b4d024a 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -172,14 +172,6 @@ static ssize_t state_show(struct device *dev, struct device_attribute *attr,
int i, count = 0;
struct extcon_dev *edev = dev_get_drvdata(dev);
- if (edev->print_state) {
- int ret = edev->print_state(edev, buf);
-
- if (ret >= 0)
- return ret;
- /* Use default if failed */
- }
-
if (edev->max_supported == 0)
return sprintf(buf, "%u\n", edev->state);