From: kernel@gkr.i24.cc
To: Johan Hedberg <johan.hedberg@gmail.com>
Cc: BlueZ development <linux-bluetooth@vger.kernel.org>,
Gordon Kramer <kernel@gkr.i24.cc>
Subject: [PATCH v5 2/2] use const uint_8* for pointer in control_message
Date: Wed, 7 Jan 2015 23:04:00 +0100 [thread overview]
Message-ID: <1420668240-5100-3-git-send-email-kernel@gkr.i24.cc> (raw)
In-Reply-To: <1420668240-5100-1-git-send-email-kernel@gkr.i24.cc>
From: Gordon Kramer <kernel@gkr.i24.cc>
change control_message signature
requires const void* usbfs_ctrltransfer for ioctl
use uint8 * in usb_switch_dell
---
tools/hid2hci.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tools/hid2hci.c b/tools/hid2hci.c
index 3eedf4e..033fcfd 100644
--- a/tools/hid2hci.c
+++ b/tools/hid2hci.c
@@ -59,7 +59,7 @@ struct usbfs_ctrltransfer {
uint16_t wIndex;
uint16_t wLength;
uint32_t timeout; /* in milliseconds */
- void *data; /* pointer to data */
+ const void *data; /* pointer to data */
};
@@ -77,7 +77,7 @@ struct usbfs_disconnect{
static int control_message(int fd, int requesttype, int request,
int value, int index,
- char *bytes, int size, int timeout)
+ const uint8_t *bytes, int size, int timeout)
{
struct usbfs_ctrltransfer transfer;
@@ -123,7 +123,7 @@ static int usb_switch_csr2(int fd, enum mode mode)
{
int err = 0;
struct usbfs_disconnect disconnect;
- char report[] = {
+ const uint8_t report[] = {
0x01, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
@@ -226,7 +226,7 @@ out:
static int usb_switch_dell(int fd, enum mode mode)
{
- char report[] = { 0x7f, 0x00, 0x00, 0x00 };
+ uint8_t report[] = { 0x7f, 0x00, 0x00, 0x00 };
struct usbfs_disconnect disconnect;
int err;
--
1.9.1
next prev parent reply other threads:[~2015-01-07 22:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-30 21:59 PATCH hid2hci for CSR 8510 A10 Gordon
2014-03-28 19:21 ` Gordon
2014-03-28 19:49 ` Johan Hedberg
2014-03-28 20:23 ` Gordon
2014-03-29 11:37 ` Gordon
2014-03-29 11:37 ` [PATCH] hid2hci add CSR 8510 A10 support Gordon
2014-03-31 12:17 ` Anderson Lizardo
2014-04-01 21:38 ` [PATCH v3] " Gordon
2015-01-07 8:24 ` Gordon
2015-01-07 9:12 ` Johan Hedberg
2015-01-07 10:10 ` [PATCH v4] " kernel
2015-01-07 20:31 ` Johan Hedberg
2015-01-07 20:52 ` Gordon
2015-01-07 21:21 ` Gordon
2015-01-07 22:03 ` [PATCH v5 0/2] " kernel
2015-01-07 22:03 ` [PATCH v5 1/2] " kernel
2015-01-07 22:04 ` kernel [this message]
2015-01-08 10:02 ` [PATCH v5 0/2] " Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1420668240-5100-3-git-send-email-kernel@gkr.i24.cc \
--to=kernel@gkr.i24.cc \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).