Skip to content

Commit

Permalink
ALSA: Storage class should be before const qualifier
Browse files Browse the repository at this point in the history
The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the
beginning of the declaration specifiers in a declaration is an
obsolescent feature.

Signed-off-by: Tobias Klauser <[email protected]>
Signed-off-by: Jesper Juhl <[email protected]>
  • Loading branch information
tklauser authored and Jesper Juhl committed Apr 21, 2008
1 parent b299c22 commit 3f76d98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sound/pci/sis7019.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ static unsigned short sis_ac97_rw(struct sis7019 *sis, int codec, u32 cmd)
u16 status;
u16 rdy;
int count;
const static u16 codec_ready[3] = {
static const u16 codec_ready[3] = {
SIS_AC97_STATUS_CODEC_READY,
SIS_AC97_STATUS_CODEC2_READY,
SIS_AC97_STATUS_CODEC3_READY,
Expand Down Expand Up @@ -984,7 +984,7 @@ static unsigned short sis_ac97_rw(struct sis7019 *sis, int codec, u32 cmd)
static void sis_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
unsigned short val)
{
const static u32 cmd[3] = {
static const u32 cmd[3] = {
SIS_AC97_CMD_CODEC_WRITE,
SIS_AC97_CMD_CODEC2_WRITE,
SIS_AC97_CMD_CODEC3_WRITE,
Expand All @@ -995,7 +995,7 @@ static void sis_ac97_write(struct snd_ac97 *ac97, unsigned short reg,

static unsigned short sis_ac97_read(struct snd_ac97 *ac97, unsigned short reg)
{
const static u32 cmd[3] = {
static const u32 cmd[3] = {
SIS_AC97_CMD_CODEC_READ,
SIS_AC97_CMD_CODEC2_READ,
SIS_AC97_CMD_CODEC3_READ,
Expand Down
2 changes: 1 addition & 1 deletion sound/ppc/snd_ps3.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static inline void update_mask_reg(unsigned int reg, u32 mask, u32 or_val)
/*
* ALSA defs
*/
const static struct snd_pcm_hardware snd_ps3_pcm_hw = {
static const struct snd_pcm_hardware snd_ps3_pcm_hw = {
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_NONINTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID),
Expand Down

0 comments on commit 3f76d98

Please sign in to comment.