From: Stephen Rothwell Date: Wed, 20 Feb 2013 03:18:27 +0000 (+1100) Subject: Merge remote-tracking branch 'battery/master' X-Git-Tag: next-20130220~50 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3fdbb886b87b5a705d6caa094b078c5d037b5280;p=karo-tx-linux.git Merge remote-tracking branch 'battery/master' Conflicts: include/linux/mfd/abx500/ab8500.h --- 3fdbb886b87b5a705d6caa094b078c5d037b5280 diff --cc include/linux/mfd/abx500/ab8500.h index fa7173dd71f2,b9a6a847ff61..7c0df91e3378 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h @@@ -345,12 -346,23 +350,32 @@@ static inline int is_ab8500_2p0(struct return (is_ab8500(ab) && (ab->chip_id == AB8500_CUT2P0)); } + static inline int is_ab8505_1p0_or_earlier(struct ab8500 *ab) + { + return (is_ab8505(ab) && (ab->chip_id <= AB8500_CUT1P0)); + } + + static inline int is_ab8505_2p0(struct ab8500 *ab) + { + return (is_ab8505(ab) && (ab->chip_id == AB8500_CUT2P0)); + } + + static inline int is_ab9540_1p0_or_earlier(struct ab8500 *ab) + { + return (is_ab9540(ab) && (ab->chip_id <= AB8500_CUT1P0)); + } + + static inline int is_ab9540_2p0(struct ab8500 *ab) + { + return (is_ab9540(ab) && (ab->chip_id == AB8500_CUT2P0)); + } ++ +#ifdef CONFIG_AB8500_DEBUG +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 */