[-next] extcon: Remove unused inline functions

Message ID 20230720143712.24812-1-yuehaibing@huawei.com
State New
Headers
Series [-next] extcon: Remove unused inline functions |

Commit Message

Yue Haibing July 20, 2023, 2:37 p.m. UTC
  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(-)
  

Comments

Chanwoo Choi July 23, 2023, 7:45 p.m. UTC | #1
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.
  

Patch

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__ */