summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ozwpan/ozusbif.h
diff options
context:
space:
mode:
authorPeter Huewe2013-02-15 21:17:24 +0100
committerGreg Kroah-Hartman2013-02-16 00:14:30 +0100
commitdc7f5b3594fdb846890192fd75793a791d7ba83b (patch)
tree5725989529cf6ee493546dee94aff90fc930ef70 /drivers/staging/ozwpan/ozusbif.h
parentstaging/ozwpan: Remove empty and unused function oz_cdev_heartbeat (diff)
downloadkernel-qcow2-linux-dc7f5b3594fdb846890192fd75793a791d7ba83b.tar.gz
kernel-qcow2-linux-dc7f5b3594fdb846890192fd75793a791d7ba83b.tar.xz
kernel-qcow2-linux-dc7f5b3594fdb846890192fd75793a791d7ba83b.zip
staging/ozwpan: Mark read only parameters and structs as const
This patch marks function parameters that are used read only as well as readonly structs (and corresponding pointers) as const. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozusbif.h')
-rw-r--r--drivers/staging/ozwpan/ozusbif.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/ozwpan/ozusbif.h b/drivers/staging/ozwpan/ozusbif.h
index 3acf5980d7cc..8531438d7586 100644
--- a/drivers/staging/ozwpan/ozusbif.h
+++ b/drivers/staging/ozwpan/ozusbif.h
@@ -21,7 +21,7 @@ int oz_usb_stream_delete(void *hpd, u8 ep_num);
/* Request functions.
*/
int oz_usb_control_req(void *hpd, u8 req_id, struct usb_ctrlrequest *setup,
- u8 *data, int data_len);
+ const u8 *data, int data_len);
int oz_usb_get_desc_req(void *hpd, u8 req_id, u8 req_type, u8 desc_type,
u8 index, u16 windex, int offset, int len);
int oz_usb_send_isoc(void *hpd, u8 ep_num, struct urb *urb);
@@ -30,13 +30,13 @@ void oz_usb_request_heartbeat(void *hpd);
/* Confirmation functions.
*/
void oz_hcd_get_desc_cnf(void *hport, u8 req_id, int status,
- u8 *desc, int length, int offset, int total_size);
+ const u8 *desc, int length, int offset, int total_size);
void oz_hcd_control_cnf(void *hport, u8 req_id, u8 rcode,
- u8 *data, int data_len);
+ const u8 *data, int data_len);
/* Indication functions.
*/
-void oz_hcd_data_ind(void *hport, u8 endpoint, u8 *data, int data_len);
+void oz_hcd_data_ind(void *hport, u8 endpoint, const u8 *data, int data_len);
int oz_hcd_heartbeat(void *hport);