Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357626
b: refs/heads/master
c: e0f4fec
h: refs/heads/master
v: v3
  • Loading branch information
Mian Yousaf Kaukab authored and Lee Jones committed Feb 4, 2013
1 parent b1236f8 commit 4cf6240
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c73db9f7a20c3b6a7026cbb70df2603aa2ce2e5a
refs/heads/master: e0f4fec030ce412666cc127702adbf0a6cfa0855
16 changes: 16 additions & 0 deletions trunk/drivers/mfd/abx500-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,22 @@ int abx500_startup_irq_enabled(struct device *dev, unsigned int irq)
}
EXPORT_SYMBOL(abx500_startup_irq_enabled);

void abx500_dump_all_banks(void)
{
struct abx500_ops *ops;
struct device dummy_child = {0};
struct abx500_device_entry *dev_entry;

list_for_each_entry(dev_entry, &abx500_list, list) {
dummy_child.parent = dev_entry->dev;
ops = &dev_entry->ops;

if ((ops != NULL) && (ops->dump_all_banks != NULL))
ops->dump_all_banks(&dummy_child);
}
}
EXPORT_SYMBOL(abx500_dump_all_banks);

MODULE_AUTHOR("Mattias Wallin <mattias.wallin@stericsson.com>");
MODULE_DESCRIPTION("ABX500 core driver");
MODULE_LICENSE("GPL");
2 changes: 2 additions & 0 deletions trunk/include/linux/mfd/abx500.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ int abx500_mask_and_set_register_interruptible(struct device *dev, u8 bank,
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);
void abx500_dump_all_banks(void);

struct abx500_ops {
int (*get_chip_id) (struct device *);
Expand All @@ -318,6 +319,7 @@ struct abx500_ops {
int (*mask_and_set_register) (struct device *, u8, u8, u8, u8);
int (*event_registers_startup_state_get) (struct device *, u8 *);
int (*startup_irq_enabled) (struct device *, unsigned int);
void (*dump_all_banks) (struct device *);
};

int abx500_register_ops(struct device *core_dev, struct abx500_ops *ops);
Expand Down

0 comments on commit 4cf6240

Please sign in to comment.