From a2710e79243f81b0a203eb04a311c8db07b919cb Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 19 Nov 2008 17:11:07 +0000 Subject: 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 --- include/linux/gta02_hdq.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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); -- cgit v1.2.3