[U-Boot] [PATCH 4/4] usb:gadget: Extend device struct to device_data pointer

Lukasz Majewski l.majewski at samsung.com
Thu Apr 12 09:15:31 CEST 2012


Add device data pointer to the USB gadget's device struct.

Signed-off-by: Lukasz Majewski <l.majewski at samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
Cc: Marek Vasut <marex at denx.de>
---
 include/linux/usb/gadget.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
index b0a0e1f..eba865e 100644
--- a/include/linux/usb/gadget.h
+++ b/include/linux/usb/gadget.h
@@ -411,6 +411,7 @@ struct usb_gadget_ops {
 
 struct device {
 	void		*driver_data;	/* data private to the driver */
+	void            *device_data;   /* data private to the device */
 };
 
 /**
-- 
1.7.2.3



More information about the U-Boot mailing list