summaryrefslogtreecommitdiff
path: root/common/usb_storage.c
diff options
context:
space:
mode:
authorThomas Abraham <t-abraham@ti.com>2009-01-04 12:15:35 +0530
committerRemy Bohmer <linux@bohmer.net>2009-01-28 19:57:28 +0100
commit1eb734fed3b79a5e6106dad16e88041894fdab30 (patch)
tree2b5a96068c74511143e92839ed798ce92fb3cee6 /common/usb_storage.c
parent366523c26b6320af171459b19e6e0e9e3baa83ca (diff)
downloadu-boot-imx-1eb734fed3b79a5e6106dad16e88041894fdab30.zip
u-boot-imx-1eb734fed3b79a5e6106dad16e88041894fdab30.tar.gz
u-boot-imx-1eb734fed3b79a5e6106dad16e88041894fdab30.tar.bz2
usb : usb_kbd : Populating 'priv' member of USB keyboard device_t structure
This patch populates the 'priv' field of the USB keyboard device_t structure. The 'priv' field is populated with the address of the 'struct usb_device' structure that represents the USB device. The 'priv' field can then be used in the 'usb_event_poll' function to determine the USB device that requires to be polled. An example of its usage in 'usb_event_poll' function is as below. device_t *dev; struct usb_device *usb_kbd_dev; <snip> dev = device_get_by_name("usbkbd"); usb_kbd_dev = (struct usb_device *)dev->priv; iface = &usb_kbd_dev->config.if_desc[0]; Signed-off-by: Thomas Abraham <t-abraham@ti.com> Signed-off-by: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'common/usb_storage.c')
0 files changed, 0 insertions, 0 deletions