From: Chanwoo Choi Date: Wed, 22 Mar 2017 10:17:49 +0000 (+0900) Subject: extcon: Remove deprecated extcon_set/get_cable_state_() X-Git-Tag: v4.14-rc1~146^2~46^2~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=808ae8f3c7fefef3aece08820c108b68cdb06e1e;p=platform%2Fkernel%2Flinux-exynos.git extcon: Remove deprecated extcon_set/get_cable_state_() The commit 575c2b867ee0 ("extcon: Rename the extcon_set/get_state() to maintain the function naming pattern") renames the extcon function as following: But, the extcon just keeps the old API to prevent the build error. This patch removes the deprecatd extcon API. - extcon_get_cable_state_() -> extcon_get_state() - extcon_set_cable_state_() -> extcon_set_state_sync() Signed-off-by: Chanwoo Choi --- diff --git a/include/linux/extcon.h b/include/linux/extcon.h index 7e206a9..3ba02ee 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -422,15 +422,4 @@ static inline int extcon_unregister_interest(struct extcon_specific_cable_nb { return -EINVAL; } - -static inline int extcon_get_cable_state_(struct extcon_dev *edev, unsigned int id) -{ - return extcon_get_state(edev, id); -} - -static inline int extcon_set_cable_state_(struct extcon_dev *edev, unsigned int id, - bool cable_state) -{ - return extcon_set_state_sync(edev, id, cable_state); -} #endif /* __LINUX_EXTCON_H__ */