diff options
Diffstat (limited to 'include/linux/mfd/abx500')
-rw-r--r-- | include/linux/mfd/abx500/ab8500.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 9dd9b99099df..b9a6a847ff61 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h | |||
@@ -346,4 +346,23 @@ static inline int is_ab8500_2p0(struct ab8500 *ab) | |||
346 | return (is_ab8500(ab) && (ab->chip_id == AB8500_CUT2P0)); | 346 | return (is_ab8500(ab) && (ab->chip_id == AB8500_CUT2P0)); |
347 | } | 347 | } |
348 | 348 | ||
349 | static inline int is_ab8505_1p0_or_earlier(struct ab8500 *ab) | ||
350 | { | ||
351 | return (is_ab8505(ab) && (ab->chip_id <= AB8500_CUT1P0)); | ||
352 | } | ||
353 | |||
354 | static inline int is_ab8505_2p0(struct ab8500 *ab) | ||
355 | { | ||
356 | return (is_ab8505(ab) && (ab->chip_id == AB8500_CUT2P0)); | ||
357 | } | ||
358 | |||
359 | static inline int is_ab9540_1p0_or_earlier(struct ab8500 *ab) | ||
360 | { | ||
361 | return (is_ab9540(ab) && (ab->chip_id <= AB8500_CUT1P0)); | ||
362 | } | ||
363 | |||
364 | static inline int is_ab9540_2p0(struct ab8500 *ab) | ||
365 | { | ||
366 | return (is_ab9540(ab) && (ab->chip_id == AB8500_CUT2P0)); | ||
367 | } | ||
349 | #endif /* MFD_AB8500_H */ | 368 | #endif /* MFD_AB8500_H */ |