UPSTREAM: extcon: Remove the state_store() to prevent the wrong access
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 18 Jul 2016 06:39:28 +0000 (15:39 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 3 Aug 2016 01:45:30 +0000 (09:45 +0800)
commit0a5e7cc10c83976c466dd4b3939bd34724cd5e02
tree5ec7ccd57bee0bc5afb974d60ab716ba2f876e6b
parent8693c5671ff59bfb5ace423ad4a0caf1bac5a287
UPSTREAM: extcon: Remove the state_store() to prevent the wrong access

This patch removes the state_store() which change the state of external
connectors with bit masking on user-space. It is wrong access to modify
the change the state of external connectors.

Change-Id: I635e30e2a22ddc313ed90dc7ab0f7fdaa271ed1d
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
(cherry picked from commit eeb820116207aa5dd71edbc0b8f0eaf3b20d77a1)
drivers/extcon/extcon.c