]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: Block the bit masking operation for cable state except for extcon core
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 30 Jun 2016 17:41:18 +0000 (02:41 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 10 Sep 2016 11:18:49 +0000 (16:48 +0530)
commit2499308a6fdb69e127bf4bde4a094833731a440e
tree4b8b94aa8f17a857277aed05d58ce0d5196636a4
parentdf6bec2e8220d0bafd1a96d8161ceb4e21edee93
extcon: Block the bit masking operation for cable state except for extcon core

This patch restrict the usage of extcon_update_state() in the extcon
core because the extcon_update_state() use the bit masking to change
the state of external connector. When this function is used in device drivers,
it may occur the probelm with the handling mistake of bit masking.

Also, this patch removes the extcon_get/set_state() functions because these
functions use the bit masking which is reluctant way. Instead, extcon
provides the extcon_set/get_cable_state_() functions.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c
include/linux/extcon.h