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