summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/usb/usba/usbai.c
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2019-04-02 22:50:52 +0000
committerRobert Mustacchi <rm@joyent.com>2019-06-14 22:23:14 +0000
commit0d2006e4703eda0f88de2e571bf9fb317552faa2 (patch)
tree516769af321b4f8da90a3920368e3ef1ecd717d1 /usr/src/uts/common/io/usb/usba/usbai.c
parent3e3ca1ce307a7d82ef007b435088f3f04a0f3e65 (diff)
downloadillumos-joyent-0d2006e4703eda0f88de2e571bf9fb317552faa2.tar.gz
11177 usba should read the device binary object store
11178 USB topology could know about supported, minimum speeds 11179 usba parsing code should take const data pointers 11176 usba kernel module should be CERRWARN and smatch clean Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Rob Johnston <rob.johnston@joyent.com> Approved by: Gordon Ross <gordon.ross@nexenta.com>
Diffstat (limited to 'usr/src/uts/common/io/usb/usba/usbai.c')
-rw-r--r--usr/src/uts/common/io/usb/usba/usbai.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/usr/src/uts/common/io/usb/usba/usbai.c b/usr/src/uts/common/io/usb/usba/usbai.c
index 1ff8507ff1..f6ac391bd8 100644
--- a/usr/src/uts/common/io/usb/usba/usbai.c
+++ b/usr/src/uts/common/io/usb/usba/usbai.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2019, Joyent, Inc.
*/
@@ -115,8 +116,8 @@ usba_usbai_destroy()
*/
usb_log_handle_t
usb_alloc_log_hdl(dev_info_t *dip, char *name,
- uint_t *errlevel, uint_t *mask, uint_t *instance_filter,
- usb_flags_t flags)
+ uint_t *errlevel, uint_t *mask, uint_t *instance_filter,
+ usb_flags_t flags)
{
usba_log_handle_impl_t *hdl;
@@ -147,8 +148,8 @@ usb_alloc_log_hdl(dev_info_t *dip, char *name,
/*ARGSUSED*/
usb_log_handle_t
usb_alloc_log_handle(dev_info_t *dip, char *name,
- uint_t *errlevel, uint_t *mask, uint_t *instance_filter,
- uint_t reserved, usb_flags_t flags)
+ uint_t *errlevel, uint_t *mask, uint_t *instance_filter,
+ uint_t reserved, usb_flags_t flags)
{
return (usb_alloc_log_hdl(dip, name, errlevel, mask,
instance_filter, flags));
@@ -215,7 +216,7 @@ static void
usb_vprintf(dev_info_t *dip, int level, char *label, char *fmt, va_list ap)
{
size_t len;
- int instance;
+ int instance = 0;
char driver_name[USBA_DRVNAME_LEN];
char *msg_ptr;
@@ -383,7 +384,7 @@ usb_vprintf(dev_info_t *dip, int level, char *label, char *fmt, va_list ap)
int
usba_vlog(usb_log_handle_t, uint_t, uint_t, char *, va_list)
- __KVPRINTFLIKE(4);
+ __KVPRINTFLIKE(4);
/* When usba10_calls.c goes away, this function can be made static again. */
int
@@ -579,7 +580,7 @@ usba_async_req_raise_power(void *arg)
/* usb function to perform async pm_request_power_change */
int
usb_req_raise_power(dev_info_t *dip, int comp, int level,
- void (*callback)(void *, int), void *arg, usb_flags_t flags)
+ void (*callback)(void *, int), void *arg, usb_flags_t flags)
{
usba_pm_req_t *pmrq;
@@ -633,7 +634,7 @@ usba_async_req_lower_power(void *arg)
/* usb function to perform async pm_request_power_change */
int
usb_req_lower_power(dev_info_t *dip, int comp, int level,
- void (*callback)(void *, int), void *arg, usb_flags_t flags)
+ void (*callback)(void *, int), void *arg, usb_flags_t flags)
{
usba_pm_req_t *pmrq;
@@ -1100,7 +1101,7 @@ usb_unregister_hotplug_cbs(dev_info_t *dip)
/*ARGSUSED*/
int
usb_register_event_cbs(dev_info_t *dip, usb_event_t *usb_evdata,
- usb_flags_t flags)
+ usb_flags_t flags)
{
usba_device_t *usba_device;
usba_evdata_t *evdata;