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

login
register
mail settings
Submitter Łukasz Majewski
Date April 12, 2012, 7:15 a.m.
Message ID <1334214931-19480-5-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/151987/
State Changes Requested
Delegated to: Marek Vasut
Headers show

Comments

Łukasz Majewski - April 12, 2012, 7:15 a.m.
Add device data pointer to the USB gadget's device struct.

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

Patch

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 */
 };
 
 /**