diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-04-28 13:33:36 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 10:59:46 +0200 |
commit | 195c54954f4bf82c1b7aad3adb54015941daaf65 (patch) | |
tree | 50932f8d90351f371e2e6e4a42bcdc5ce2d20706 /include | |
parent | 046f2f7c37f1f1ce83f623dcf5f7096f78956b4c (diff) |
abx500: provide simpler function names
There are no non-interruptible versions of these functions, and all of them
operate on registers, so provide shorter names to make subdrivers more readable
while sticking to the 80-column line length limit.
ST-Ericsson Linux next: -
ST-Ericsson ID: WP257121
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I98dc8152e3e8064edb95ba5679277ed8c229b537
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/21816
Reviewed-by: QATEST
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/abx500.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500.h b/include/linux/mfd/abx500.h index ee96cd51d8b..33bf25b9e58 100644 --- a/include/linux/mfd/abx500.h +++ b/include/linux/mfd/abx500.h @@ -445,6 +445,12 @@ int abx500_get_chip_id(struct device *dev); int abx500_event_registers_startup_state_get(struct device *dev, u8 *event); int abx500_startup_irq_enabled(struct device *dev, unsigned int irq); +#define abx500_get abx500_get_register_interruptible +#define abx500_set abx500_set_register_interruptible +#define abx500_get_page abx500_get_register_page_interruptible +#define abx500_set_page abx500_set_register_page_interruptible +#define abx500_mask_and_set abx500_mask_and_set_register_interruptible + struct abx500_ops { int (*get_chip_id) (struct device *); int (*get_register) (struct device *, u8, u8, u8 *); |