* [PATCH -next] extcon: Remove unused inline functions
@ 2023-07-20 14:37 YueHaibing
2023-07-23 19:45 ` Chanwoo Choi
0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2023-07-20 14:37 UTC (permalink / raw)
To: myungjoo.ham, cw00.choi, yuehaibing; +Cc: linux-kernel
commit 830ae442202e ("extcon: Remove the deprecated extcon functions")
left behind this.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
include/linux/extcon.h | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index 3c45c3846fe9..e596a0abcb27 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -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__ */
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] extcon: Remove unused inline functions
2023-07-20 14:37 [PATCH -next] extcon: Remove unused inline functions YueHaibing
@ 2023-07-23 19:45 ` Chanwoo Choi
0 siblings, 0 replies; 2+ messages in thread
From: Chanwoo Choi @ 2023-07-23 19:45 UTC (permalink / raw)
To: YueHaibing, myungjoo.ham, cw00.choi; +Cc: linux-kernel
On 23. 7. 20. 23:37, YueHaibing wrote:
> commit 830ae442202e ("extcon: Remove the deprecated extcon functions")
> left behind this.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> include/linux/extcon.h | 12 ------------
> 1 file changed, 12 deletions(-)
>
> diff --git a/include/linux/extcon.h b/include/linux/extcon.h
> index 3c45c3846fe9..e596a0abcb27 100644
> --- a/include/linux/extcon.h
> +++ b/include/linux/extcon.h
> @@ -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__ */
Applied it. Thanks.
--
Best Regards,
Samsung Electronics
Chanwoo Choi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-23 19:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-20 14:37 [PATCH -next] extcon: Remove unused inline functions YueHaibing
2023-07-23 19:45 ` Chanwoo Choi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®