diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-12-26 12:37:38 +0100 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2017-01-09 02:04:11 +0100 |
commit | e6cf046543763878614d51e8283abd40d5e5327e (patch) | |
tree | cce169528406f448b03d82c2d6ee036b1ef03bca /drivers/extcon/devres.c | |
parent | extcon: adc-jack: Use the internal data instead of using struct extcon_dev (diff) | |
download | linux-e6cf046543763878614d51e8283abd40d5e5327e.tar.xz linux-e6cf046543763878614d51e8283abd40d5e5327e.zip |
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>
Diffstat (limited to 'drivers/extcon/devres.c')
-rw-r--r-- | drivers/extcon/devres.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/devres.c b/drivers/extcon/devres.c index e686acd1c459..b40eb1805927 100644 --- a/drivers/extcon/devres.c +++ b/drivers/extcon/devres.c @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include <linux/extcon.h> +#include "extcon.h" static int devm_extcon_dev_match(struct device *dev, void *res, void *data) { |