FROMLIST: extcon: Add the support for the capability of each property
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 25 Jul 2016 12:15:19 +0000 (21:15 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 5 Aug 2016 02:05:20 +0000 (10:05 +0800)
commitb811cb2465c2464d7c1e1195944bd32dda3697a8
tree88bea129e532a45973c1c5414009f965b42bec4d
parent536277d5500af23affdbf8b9ab606889f20daefa
FROMLIST: extcon: Add the support for the capability of each property

This patch adds the support of the property capability setting. This function
decides the supported properties of each external connector on extcon provider
driver.

Ths list of new extcon APIs to get/set the capability of property as following:
- int extcon_get_property_capability(struct extcon_dev *edev,
unsigned int id, unsigned int prop);
- int extcon_set_property_capability(struct extcon_dev *edev,
unsigned int id, unsigned int prop);

Change-Id: I6b8b41de70f2bccc7b996592ec9a2a008730f45d
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Chris Zhong <zyw@rock-chips.com>
Tested-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
(cherry picked from commit e4a095473938
 git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon.git extcon-test)
Signed-off-by: Guenter Roeck <groeck@chromium.org>
drivers/extcon/extcon.c
include/linux/extcon.h