Commit 099a47a2 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: rme9652 annotation

Annotated driver and ioctl structure used by it.
parent 2996867d
...@@ -76,7 +76,7 @@ struct _snd_hdsp_config_info { ...@@ -76,7 +76,7 @@ struct _snd_hdsp_config_info {
typedef struct _snd_hdsp_firmware hdsp_firmware_t; typedef struct _snd_hdsp_firmware hdsp_firmware_t;
struct _snd_hdsp_firmware { struct _snd_hdsp_firmware {
unsigned long *firmware_data; /* 24413 long words */ unsigned long __user *firmware_data; /* 24413 long words */
}; };
#define SNDRV_HDSP_IOCTL_UPLOAD_FIRMWARE _IOW('H', 0x42, hdsp_firmware_t) #define SNDRV_HDSP_IOCTL_UPLOAD_FIRMWARE _IOW('H', 0x42, hdsp_firmware_t)
......
This diff is collapsed.
...@@ -2011,7 +2011,7 @@ static char *rme9652_channel_buffer_location(rme9652_t *rme9652, ...@@ -2011,7 +2011,7 @@ static char *rme9652_channel_buffer_location(rme9652_t *rme9652,
} }
static int snd_rme9652_playback_copy(snd_pcm_substream_t *substream, int channel, static int snd_rme9652_playback_copy(snd_pcm_substream_t *substream, int channel,
snd_pcm_uframes_t pos, void *src, snd_pcm_uframes_t count) snd_pcm_uframes_t pos, void __user *src, snd_pcm_uframes_t count)
{ {
rme9652_t *rme9652 = _snd_pcm_substream_chip(substream); rme9652_t *rme9652 = _snd_pcm_substream_chip(substream);
char *channel_buf; char *channel_buf;
...@@ -2028,7 +2028,7 @@ static int snd_rme9652_playback_copy(snd_pcm_substream_t *substream, int channel ...@@ -2028,7 +2028,7 @@ static int snd_rme9652_playback_copy(snd_pcm_substream_t *substream, int channel
} }
static int snd_rme9652_capture_copy(snd_pcm_substream_t *substream, int channel, static int snd_rme9652_capture_copy(snd_pcm_substream_t *substream, int channel,
snd_pcm_uframes_t pos, void *dst, snd_pcm_uframes_t count) snd_pcm_uframes_t pos, void __user *dst, snd_pcm_uframes_t count)
{ {
rme9652_t *rme9652 = _snd_pcm_substream_chip(substream); rme9652_t *rme9652 = _snd_pcm_substream_chip(substream);
char *channel_buf; char *channel_buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment