extcon: Move defintion of struct extcon_dev to driver/extcon directory
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 26 Dec 2016 11:37:38 +0000 (20:37 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Jan 2017 01:04:11 +0000 (10:04 +0900)
commite6cf046543763878614d51e8283abd40d5e5327e
treecce169528406f448b03d82c2d6ee036b1ef03bca
parent6e3a7e89ff1a13d6e09f63ce9eff4ad3fad7b544
extcon: Move defintion of struct extcon_dev to driver/extcon directory

This patch moves the 'struct extcon_dev' of extcon subsystem
to driver/extcon/extcon.h header file because the struct extcon_dev have to
be handled by extcon API to guarantee the consistency of strcut extcon_dev.
If external drivers are able to touch the struct extcon_dev directly, it might
cause the critical and unknown problem.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/devres.c
drivers/extcon/extcon.c
drivers/extcon/extcon.h [new file with mode: 0644]
include/linux/extcon.h