extcon: Change permission 'state' sysfs entry (rw -> r)
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 22 May 2013 10:31:59 +0000 (19:31 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 23:02:33 +0000 (16:02 -0700)
commitea9dd9d655adf16b083b79ad84e5b012543f659f
tree1f39bf1ed34b75e404fc96ad2fe1847aeec294ee
parent12e50c30545b74ca8b6ef7f442b826fed155193f
extcon: Change permission 'state' sysfs entry (rw -> r)

This patch change permission from read/write to only read.
The specific process in the user-space couldn't change the state
of cable when cable is attached or detached.
- /sys/class/extcon/[devine name]/state

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-class.c