Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: ab8500: Remove non-existent configuration "#ifdef CONFIG_AB8500_DEBUG"

The CONFIG_AB8500_DEBUG has been deleted in:

3d4d1266597c0 ("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>
Link: https://lore.kernel.org/r/20230913084559.18141-1-sunying@nj.iscas.ac.cn
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Ying Sun and committed by
Lee Jones
89b00c32 a50afa31

-6
-6
include/linux/mfd/abx500/ab8500.h
··· 499 499 500 500 void ab8500_override_turn_on_stat(u8 mask, u8 set); 501 501 502 - #ifdef CONFIG_AB8500_DEBUG 503 - extern int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size); 504 - void ab8500_dump_all_banks(struct device *dev); 505 - void ab8500_debug_register_interrupt(int line); 506 - #else 507 502 static inline void ab8500_dump_all_banks(struct device *dev) {} 508 503 static inline void ab8500_debug_register_interrupt(int line) {} 509 - #endif 510 504 511 505 #endif /* MFD_AB8500_H */