diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-09-20 15:23:00 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-09-20 15:23:00 -0600 |
commit | ce278bce8cf2d091e69a6640ad8e23b889cbbedd (patch) | |
tree | 15f262a6f5f2f5dcf8c32c04119eaa2b811e6e1c /nuttx/drivers/usbhost/usbhost_hidkbd.c | |
parent | 4351d43bb8480bcdb0bc0cb033ed0a6fb37668b3 (diff) | |
download | nuttx-ce278bce8cf2d091e69a6640ad8e23b889cbbedd.tar.gz nuttx-ce278bce8cf2d091e69a6640ad8e23b889cbbedd.tar.bz2 nuttx-ce278bce8cf2d091e69a6640ad8e23b889cbbedd.zip |
SAMA5 + HID Keyboard. Fixes to initialize the HID keyboard class
Diffstat (limited to 'nuttx/drivers/usbhost/usbhost_hidkbd.c')
-rw-r--r-- | nuttx/drivers/usbhost/usbhost_hidkbd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/drivers/usbhost/usbhost_hidkbd.c b/nuttx/drivers/usbhost/usbhost_hidkbd.c index 1710a2bb8..e2995628f 100644 --- a/nuttx/drivers/usbhost/usbhost_hidkbd.c +++ b/nuttx/drivers/usbhost/usbhost_hidkbd.c @@ -354,7 +354,7 @@ static int usbhost_poll(FAR struct file *filep, FAR struct pollfd *fds, * device. */ -static const const struct usbhost_id_s g_id = +static const const struct usbhost_id_s g_hidkbd_id = { USB_CLASS_HID, /* base */ USBHID_SUBCLASS_BOOTIF, /* subclass */ @@ -365,15 +365,15 @@ static const const struct usbhost_id_s g_id = /* This is the USB host storage class's registry entry */ -static struct usbhost_registry_s g_skeleton = +static struct usbhost_registry_s g_hidkbd = { NULL, /* flink */ usbhost_create, /* create */ 1, /* nids */ - &g_id /* id[] */ + &g_hidkbd_id /* id[] */ }; -static const struct file_operations usbhost_fops = +static const struct file_operations g_hidkbd_fops = { usbhost_open, /* open */ usbhost_close, /* close */ @@ -1598,7 +1598,7 @@ static inline int usbhost_devinit(FAR struct usbhost_state_s *priv) uvdbg("Register driver\n"); usbhost_mkdevname(priv, devname); - ret = register_driver(devname, &usbhost_fops, 0666, priv); + ret = register_driver(devname, &g_hidkbd_fops, 0666, priv); /* We now have to be concerned about asynchronous modification of crefs * because the driver has been registerd. @@ -2350,7 +2350,7 @@ int usbhost_kbdinit(void) /* Advertise our availability to support (certain) devices */ - return usbhost_registerclass(&g_skeleton); + return usbhost_registerclass(&g_hidkbd); } #endif /* CONFIG_USBHOST)&& !CONFIG_USBHOST_INT_DISABLE && CONFIG_NFILE_DESCRIPTORS */ |