aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_hid.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-05-30 00:22:57 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-05-30 00:22:57 +0000
commitf9cb546c233aa780517ea85bec2cc8630097535a (patch)
tree850ed632800ebd9b53080b0dbbbb6afda22bcd1c /sys/dev/usb/usb_hid.c
parent515db61d2bdfc2bfda5ed86cb0675287a5bbbe79 (diff)
downloadsrc-f9cb546c233aa780517ea85bec2cc8630097535a.tar.gz
src-f9cb546c233aa780517ea85bec2cc8630097535a.zip
Revert the size_t part of the last commit for the moment, this blows up the
USB_ADD_BYTES macro.
Notes
Notes: svn path=/head/; revision=193074
Diffstat (limited to 'sys/dev/usb/usb_hid.c')
-rw-r--r--sys/dev/usb/usb_hid.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/usb_hid.c b/sys/dev/usb/usb_hid.c
index 99571365b9b0..df71978011cb 100644
--- a/sys/dev/usb/usb_hid.c
+++ b/sys/dev/usb/usb_hid.c
@@ -105,7 +105,7 @@ hid_clear_local(struct hid_item *c)
* hid_start_parse
*------------------------------------------------------------------------*/
struct hid_data *
-hid_start_parse(const void *d, size_t len, int kindset)
+hid_start_parse(const void *d, usb_size_t len, int kindset)
{
struct hid_data *s;
@@ -491,7 +491,7 @@ hid_get_item(struct hid_data *s, struct hid_item *h)
* hid_report_size
*------------------------------------------------------------------------*/
int
-hid_report_size(const void *buf, size_t len, enum hid_kind k, uint8_t *id)
+hid_report_size(const void *buf, usb_size_t len, enum hid_kind k, uint8_t *id)
{
struct hid_data *d;
struct hid_item h;
@@ -544,7 +544,7 @@ hid_report_size(const void *buf, size_t len, enum hid_kind k, uint8_t *id)
* hid_locate
*------------------------------------------------------------------------*/
int
-hid_locate(const void *desc, size_t size, uint32_t u, enum hid_kind k,
+hid_locate(const void *desc, usb_size_t size, uint32_t u, enum hid_kind k,
uint8_t index, struct hid_location *loc, uint32_t *flags, uint8_t *id)
{
struct hid_data *d;
@@ -578,7 +578,7 @@ hid_locate(const void *desc, size_t size, uint32_t u, enum hid_kind k,
* hid_get_data
*------------------------------------------------------------------------*/
uint32_t
-hid_get_data(const uint8_t *buf, size_t len, struct hid_location *loc)
+hid_get_data(const uint8_t *buf, usb_size_t len, struct hid_location *loc)
{
uint32_t hpos = loc->pos;
uint32_t hsize = loc->size;
@@ -621,7 +621,7 @@ hid_get_data(const uint8_t *buf, size_t len, struct hid_location *loc)
* hid_is_collection
*------------------------------------------------------------------------*/
int
-hid_is_collection(const void *desc, size_t size, uint32_t usage)
+hid_is_collection(const void *desc, usb_size_t size, uint32_t usage)
{
struct hid_data *hd;
struct hid_item hi;