Skip to contentSkip to conversation

extcon: Remove unused inline functions

PATCH Applied YueHaibing 2 participants 2 messages Jul 20, 2023 – Jul 23, 2023 External connector subsystem (extcon)

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 extcon: Remove unused inline functions

commit 830ae442202e ("extcon: Remove the deprecated extcon functions") left behind this.

---
 include/linux/extcon.h | 12 ------------
 1 file changed, 12 deletions(-)
include/linux/extcon.h +0 -12
index 3c45c3846fe9..e596a0abcb27 100644
@@ -328,16 +328,4 @@ struct extcon_specific_cable_nb {
        struct extcon_dev *edev;
        unsigned long previous_value;
 };
-
-static inline int extcon_register_interest(struct extcon_specific_cable_nb *obj,
-				const char *extcon_name, const char *cable_name,
-				struct notifier_block *nb)
-{
-	return -EINVAL;
-}
-
-static inline int extcon_unregister_interest(struct extcon_specific_cable_nb *obj)
-{
-	return -EINVAL;
-}
 #endif /* __LINUX_EXTCON_H__ */
Signature · 1 line
2.34.1
Applied
#1 lore raw
Quoted 19 lines · YueHaibing

commit 830ae442202e ("extcon: Remove the deprecated extcon functions") left behind this.

---
 include/linux/extcon.h | 12 ------------
 1 file changed, 12 deletions(-)
include/linux/extcon.h +0 -3
index 3c45c3846fe9..e596a0abcb27 100644
@@ -328,16 +328,4 @@ struct extcon_specific_cable_nb {
        struct extcon_dev *edev;
        unsigned long previous_value;
 };
-
-static inline int extcon_register_interest(struct extcon_specific_cable_nb *obj,
-				const char *extcon_name, const char *cable_name,

include/linux/extcon.h struct extcon_specific_cable_nb { · line 331

Quoted 10 lines
include/linux/extcon.h +0 -9
-				struct notifier_block *nb)
-{
-	return -EINVAL;
-}
-
-static inline int extcon_unregister_interest(struct extcon_specific_cable_nb *obj)
-{
-	return -EINVAL;
-}
 #endif /* __LINUX_EXTCON_H__ */

Applied it. Thanks.

Signature · 3 lines
Best Regards,
Samsung Electronics
Chanwoo Choi