]> git.baikalelectronics.ru Git - kernel.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)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 10 Sep 2016 11:18:52 +0000 (16:48 +0530)
commit18642afd6dd9716ecb935a202c7a73f7800e2147
treeeb6d1778bfca92b7c419288d7b2654d28a38d3be
parent6b2f79838123bd90e5e8e59a7b4036c593878142
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