]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Aug 2016 02:17:22 +0000 (11:17 +0900)
commit7f2a0a1699b51bfd738f1e0b15e057996fe1f259
treedf2537d5d727507e9ff6611587b787dc52278a50
parent792e7e9e5d4358bc6157152b2c07b94eb9e261b0
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);

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>
drivers/extcon/extcon.c
include/linux/extcon.h