From: Roman Sommer <roman.sommer@fau.de>
To: unlisted-recipients:; (no To-header on input)
Cc: "Roman Sommer" <roman.sommer@fau.de>,
linux-kernel@i4.cs.fau.de, "Daniel Graefe" <daniel.graefe@fau.de>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Takashi Sakamoto" <o-takashi@sakamocchi.jp>,
"Hans P. Möller Ebner" <hmoller@uc.cl>,
"Kees Cook" <keescook@chromium.org>,
"Kate Stewart" <kstewart@linuxfoundation.org>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Fabián Inostroza" <soulsonceonfire@gmail.com>,
"Bhumika Goyal" <bhumirks@gmail.com>,
"Philippe Ombredanne" <pombredanne@nexb.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/3] sound/line6: unsigned -> unsigned int
Date: Mon, 18 Jun 2018 12:29:38 +0200 [thread overview]
Message-ID: <1529317779-15908-3-git-send-email-roman.sommer@fau.de> (raw)
In-Reply-To: <1529317779-15908-1-git-send-email-roman.sommer@fau.de>
CC: Jaroslav Kysela <perex@perex.cz>
CC: Takashi Iwai <tiwai@suse.com>
CC: Takashi Sakamoto <o-takashi@sakamocchi.jp>
CC: "Hans P. Möller Ebner" <hmoller@uc.cl>
CC: Kees Cook <keescook@chromium.org>
CC: Kate Stewart <kstewart@linuxfoundation.org>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: "Fabián Inostroza" <soulsonceonfire@gmail.com>
CC: Bhumika Goyal <bhumirks@gmail.com>
CC: Philippe Ombredanne <pombredanne@nexb.com>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: alsa-devel@alsa-project.org
CC: linux-kernel@vger.kernel.org
This patch replaces all occurrences of 'unsigned' in sound/usb/line6 with
'unsigned int'.
Signed-off-by: Roman Sommer <roman.sommer@fau.de>
Signed-off-by: Daniel Graefe <daniel.graefe@fau.de>
---
sound/usb/line6/driver.c | 10 +++++-----
sound/usb/line6/driver.h | 8 ++++----
sound/usb/line6/pcm.c | 4 ++--
sound/usb/line6/pcm.h | 6 +++---
4 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c
index df7e761..fd176ef 100644
--- a/sound/usb/line6/driver.c
+++ b/sound/usb/line6/driver.c
@@ -346,13 +346,13 @@ static void line6_data_received(struct urb *urb)
/*
* Read data from device.
*/
-int line6_read_data(struct usb_line6 *line6, unsigned address, void *data,
- unsigned datalen)
+int line6_read_data(struct usb_line6 *line6, unsigned int address, void *data,
+ unsigned int datalen)
{
struct usb_device *usbdev = line6->usbdev;
int ret;
unsigned char len;
- unsigned count;
+ unsigned int count;
if (address > 0xffff || datalen > 0xff)
return -EINVAL;
@@ -417,8 +417,8 @@ EXPORT_SYMBOL_GPL(line6_read_data);
/*
* Write data to device.
*/
-int line6_write_data(struct usb_line6 *line6, unsigned address, void *data,
- unsigned datalen)
+int line6_write_data(struct usb_line6 *line6, unsigned int address, void *data,
+ unsigned int datalen)
{
struct usb_device *usbdev = line6->usbdev;
int ret;
diff --git a/sound/usb/line6/driver.h b/sound/usb/line6/driver.h
index b307944..1dfb6de 100644
--- a/sound/usb/line6/driver.h
+++ b/sound/usb/line6/driver.h
@@ -187,8 +187,8 @@ struct usb_line6 {
extern char *line6_alloc_sysex_buffer(struct usb_line6 *line6, int code1,
int code2, int size);
-extern int line6_read_data(struct usb_line6 *line6, unsigned address,
- void *data, unsigned datalen);
+extern int line6_read_data(struct usb_line6 *line6, unsigned int address,
+ void *data, unsigned int datalen);
extern int line6_read_serial_number(struct usb_line6 *line6,
u32 *serial_number);
extern int line6_send_raw_message_async(struct usb_line6 *line6,
@@ -200,8 +200,8 @@ extern ssize_t line6_set_raw(struct device *dev, struct device_attribute *attr,
extern void line6_start_timer(struct timer_list *timer, unsigned long msecs,
void (*function)(struct timer_list *t));
extern int line6_version_request_async(struct usb_line6 *line6);
-extern int line6_write_data(struct usb_line6 *line6, unsigned address,
- void *data, unsigned datalen);
+extern int line6_write_data(struct usb_line6 *line6, unsigned int address,
+ void *data, unsigned int datalen);
int line6_probe(struct usb_interface *interface,
const struct usb_device_id *id,
diff --git a/sound/usb/line6/pcm.c b/sound/usb/line6/pcm.c
index 20a2da3..c4d698c 100644
--- a/sound/usb/line6/pcm.c
+++ b/sound/usb/line6/pcm.c
@@ -529,8 +529,8 @@ int line6_init_pcm(struct usb_line6 *line6,
struct line6_pcm_properties *properties)
{
int i, err;
- unsigned ep_read = line6->properties->ep_audio_r;
- unsigned ep_write = line6->properties->ep_audio_w;
+ unsigned int ep_read = line6->properties->ep_audio_r;
+ unsigned int ep_write = line6->properties->ep_audio_w;
struct snd_pcm *pcm;
struct snd_line6_pcm *line6pcm;
diff --git a/sound/usb/line6/pcm.h b/sound/usb/line6/pcm.h
index acef244..cd1da40 100644
--- a/sound/usb/line6/pcm.h
+++ b/sound/usb/line6/pcm.h
@@ -104,13 +104,13 @@ struct line6_pcm_stream {
/* Count processed bytes;
* This is modulo period size (to determine when a period is finished).
*/
- unsigned bytes;
+ unsigned int bytes;
/* Counter to create desired sample rate */
- unsigned count;
+ unsigned int count;
/* period size in bytes */
- unsigned period;
+ unsigned int period;
/* Processed frame position in the buffer;
* The contents of the ring buffer have been consumed by the USB
--
2.7.4
next prev parent reply other threads:[~2018-06-18 10:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-18 10:29 [PATCH 0/3] sound/usb/line6: fix some styling issues Roman Sommer
2018-06-18 10:29 ` [PATCH 1/3] sound/line6: checkpatch: fix block comment style Roman Sommer
2018-06-18 11:21 ` Greg Kroah-Hartman
2018-06-18 11:56 ` Sommer, Roman
2018-06-18 10:29 ` Roman Sommer [this message]
2018-06-18 10:29 ` [PATCH 3/3] sound/line6: add newline after declarations Roman Sommer
2018-06-18 10:39 ` [PATCH 0/3] sound/usb/line6: fix some styling issues Takashi Iwai
2018-06-18 11:57 ` Sommer, Roman
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=1529317779-15908-3-git-send-email-roman.sommer@fau.de \
--to=roman.sommer@fau.de \
--cc=alsa-devel@alsa-project.org \
--cc=bhumirks@gmail.com \
--cc=daniel.graefe@fau.de \
--cc=gregkh@linuxfoundation.org \
--cc=hmoller@uc.cl \
--cc=keescook@chromium.org \
--cc=kstewart@linuxfoundation.org \
--cc=linux-kernel@i4.cs.fau.de \
--cc=linux-kernel@vger.kernel.org \
--cc=o-takashi@sakamocchi.jp \
--cc=perex@perex.cz \
--cc=pombredanne@nexb.com \
--cc=soulsonceonfire@gmail.com \
--cc=tglx@linutronix.de \
--cc=tiwai@suse.com \
/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
all inboxes | Powered by JetHome®