* [PATCH] mfd: ab8500: remove non-existent configuration "#ifdef CONFIG_AB8500_DEBUG"
@ 2023-09-13 8:45 sunying
2023-09-20 12:12 ` (subset) " Lee Jones
2023-09-20 12:13 ` Lee Jones
0 siblings, 2 replies; 3+ messages in thread
From: sunying @ 2023-09-13 8:45 UTC (permalink / raw)
To: lee; +Cc: linux-kernel, renyanjie01, pengpeng, Ying Sun
From: Ying Sun <sunying@nj.iscas.ac.cn>
The CONFIG_AB8500_DEBUG has been deleted in
[PATCH]mfd: ab8500: Drop debugfs module.
The condition "#ifdef CONFIG_AB8500_DEBUG" in
include/linux/mfd/abx500/ab8500.h:502
cannot be valid. It is recommended to delete redundant code.
Suggested-by: Yanjie Ren <renyanjie01@gmail.com>
Signed-off-by: Ying Sun <sunying@nj.iscas.ac.cn>
---
include/linux/mfd/abx500/ab8500.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h
index 09fb3c56e7d7..76d326ea8eba 100644
--- a/include/linux/mfd/abx500/ab8500.h
+++ b/include/linux/mfd/abx500/ab8500.h
@@ -499,13 +499,7 @@ static inline int is_ab9540_2p0_or_earlier(struct ab8500 *ab)
void ab8500_override_turn_on_stat(u8 mask, u8 set);
-#ifdef CONFIG_AB8500_DEBUG
-extern int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
-void ab8500_dump_all_banks(struct device *dev);
-void ab8500_debug_register_interrupt(int line);
-#else
static inline void ab8500_dump_all_banks(struct device *dev) {}
static inline void ab8500_debug_register_interrupt(int line) {}
-#endif
#endif /* MFD_AB8500_H */
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: (subset) [PATCH] mfd: ab8500: remove non-existent configuration "#ifdef CONFIG_AB8500_DEBUG"
2023-09-13 8:45 [PATCH] mfd: ab8500: remove non-existent configuration "#ifdef CONFIG_AB8500_DEBUG" sunying
@ 2023-09-20 12:12 ` Lee Jones
2023-09-20 12:13 ` Lee Jones
1 sibling, 0 replies; 3+ messages in thread
From: Lee Jones @ 2023-09-20 12:12 UTC (permalink / raw)
To: lee, sunying; +Cc: linux-kernel, renyanjie01, pengpeng
On Wed, 13 Sep 2023 16:45:59 +0800, sunying@nj.iscas.ac.cn wrote:
> The CONFIG_AB8500_DEBUG has been deleted in
> [PATCH]mfd: ab8500: Drop debugfs module.
>
> The condition "#ifdef CONFIG_AB8500_DEBUG" in
> include/linux/mfd/abx500/ab8500.h:502
> cannot be valid. It is recommended to delete redundant code.
>
> [...]
Applied, thanks!
[1/1] mfd: ab8500: remove non-existent configuration "#ifdef CONFIG_AB8500_DEBUG"
commit: b173dcd781e0a8293f2dbba92c7245ff9aac5820
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mfd: ab8500: remove non-existent configuration "#ifdef CONFIG_AB8500_DEBUG"
2023-09-13 8:45 [PATCH] mfd: ab8500: remove non-existent configuration "#ifdef CONFIG_AB8500_DEBUG" sunying
2023-09-20 12:12 ` (subset) " Lee Jones
@ 2023-09-20 12:13 ` Lee Jones
1 sibling, 0 replies; 3+ messages in thread
From: Lee Jones @ 2023-09-20 12:13 UTC (permalink / raw)
To: sunying; +Cc: linux-kernel, renyanjie01, pengpeng
On Wed, 13 Sep 2023, sunying@nj.iscas.ac.cn wrote:
> From: Ying Sun <sunying@nj.iscas.ac.cn>
>
> The CONFIG_AB8500_DEBUG has been deleted in
> [PATCH]mfd: ab8500: Drop debugfs module.
In future please use the following format when referencing commits:
3d4d1266597c0 ("mfd: ab8500: Drop debugfs module")
I have fixed this for you this time.
> The condition "#ifdef CONFIG_AB8500_DEBUG" in
> include/linux/mfd/abx500/ab8500.h:502
> cannot be valid. It is recommended to delete redundant code.
>
> Suggested-by: Yanjie Ren <renyanjie01@gmail.com>
> Signed-off-by: Ying Sun <sunying@nj.iscas.ac.cn>
> ---
> include/linux/mfd/abx500/ab8500.h | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h
> index 09fb3c56e7d7..76d326ea8eba 100644
> --- a/include/linux/mfd/abx500/ab8500.h
> +++ b/include/linux/mfd/abx500/ab8500.h
> @@ -499,13 +499,7 @@ static inline int is_ab9540_2p0_or_earlier(struct ab8500 *ab)
>
> void ab8500_override_turn_on_stat(u8 mask, u8 set);
>
> -#ifdef CONFIG_AB8500_DEBUG
> -extern int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size);
> -void ab8500_dump_all_banks(struct device *dev);
> -void ab8500_debug_register_interrupt(int line);
> -#else
> static inline void ab8500_dump_all_banks(struct device *dev) {}
> static inline void ab8500_debug_register_interrupt(int line) {}
> -#endif
>
> #endif /* MFD_AB8500_H */
> --
> 2.17.1
>
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-20 12:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-13 8:45 [PATCH] mfd: ab8500: remove non-existent configuration "#ifdef CONFIG_AB8500_DEBUG" sunying
2023-09-20 12:12 ` (subset) " Lee Jones
2023-09-20 12:13 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox