Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1688578 > unrolled thread

[PATCH 5/5] extcon: Remove deprecated extcon_set/get_cable_state_()

Started byChanwoo Choi <cw00.choi@samsung.com>
First post2017-07-17 03:30 +0200
Last post2017-07-17 03:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 5/5] extcon: Remove deprecated extcon_set/get_cable_state_() Chanwoo Choi <cw00.choi@samsung.com> - 2017-07-17 03:30 +0200

#1688578 — [PATCH 5/5] extcon: Remove deprecated extcon_set/get_cable_state_()

FromChanwoo Choi <cw00.choi@samsung.com>
Date2017-07-17 03:30 +0200
Subject[PATCH 5/5] extcon: Remove deprecated extcon_set/get_cable_state_()
Message-ID<u431g-6LV-1@gated-at.bofh.it>
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 <cw00.choi@samsung.com>
---
 include/linux/extcon.h | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index 7e206a9f88db..3ba02eecba2e 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__ */
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web