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)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Aug 2016 01:58:36 +0000 (10:58 +0900)
commit912465bcf869660900cf77c4761869048f3ff063
tree2b04bc845cb5e76a70246790059c5016fc8c7d69
parent5d5321e90a69881a6e92604b73f7c8e8ca473373
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
This page took 0.027592 seconds and 5 git commands to generate.