diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:11:07 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:11:07 +0000 |
commit | a2710e79243f81b0a203eb04a311c8db07b919cb (patch) | |
tree | 05c8ba97230dce219c91879c7d3171c62044d336 /include/linux/gta02_hdq.h | |
parent | f8b02bf658c479e5999511eb1f309dd232708347 (diff) |
fix-hdq-child-attach-callback.patch
Along the same lines as FIQ, HDQ can have children in device tree terms too.
Allow the same kind of callback in machine-specific code
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'include/linux/gta02_hdq.h')
-rw-r--r-- | include/linux/gta02_hdq.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/gta02_hdq.h b/include/linux/gta02_hdq.h index 2f43a62e1f0..ae0c70e24eb 100644 --- a/include/linux/gta02_hdq.h +++ b/include/linux/gta02_hdq.h @@ -1,6 +1,16 @@ #ifndef __GTA02HDQ_H__ #define __GTA02HDQ_H__ +/* platform data */ + +struct gta02_hdq_platform_data { + /* + * give an opportunity to use us as parent for + * devices that depend on us + */ + void (*attach_child_devices)(struct device *parent_device); +}; + int gta02hdq_read(int address); int gta02hdq_write(int address, u8 data); int gta02hdq_initialized(void); |