Skip to content

Commit

Permalink
ASoC: Staticise PCM operations tables
Browse files Browse the repository at this point in the history
The PCM operations tables are not exported directly but are instead
included in the platform structure so should be declared static.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jan 19, 2009
1 parent 91432e9 commit b2a19d0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sound/soc/atmel/atmel-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static int atmel_pcm_mmap(struct snd_pcm_substream *substream,
vma->vm_end - vma->vm_start, vma->vm_page_prot);
}

struct snd_pcm_ops atmel_pcm_ops = {
static struct snd_pcm_ops atmel_pcm_ops = {
.open = atmel_pcm_open,
.close = atmel_pcm_close,
.ioctl = snd_pcm_lib_ioctl,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/au1x/dbdma2.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int au1xpsc_pcm_close(struct snd_pcm_substream *substream)
return 0;
}

struct snd_pcm_ops au1xpsc_pcm_ops = {
static struct snd_pcm_ops au1xpsc_pcm_ops = {
.open = au1xpsc_pcm_open,
.close = au1xpsc_pcm_close,
.ioctl = snd_pcm_lib_ioctl,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/blackfin/bf5xx-ac97-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static int bf5xx_pcm_copy(struct snd_pcm_substream *substream, int channel,
}
#endif

struct snd_pcm_ops bf5xx_pcm_ac97_ops = {
static struct snd_pcm_ops bf5xx_pcm_ac97_ops = {
.open = bf5xx_pcm_open,
.ioctl = snd_pcm_lib_ioctl,
.hw_params = bf5xx_pcm_hw_params,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/blackfin/bf5xx-i2s-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static int bf5xx_pcm_mmap(struct snd_pcm_substream *substream,
return 0 ;
}

struct snd_pcm_ops bf5xx_pcm_i2s_ops = {
static struct snd_pcm_ops bf5xx_pcm_i2s_ops = {
.open = bf5xx_pcm_open,
.ioctl = snd_pcm_lib_ioctl,
.hw_params = bf5xx_pcm_hw_params,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/davinci/davinci-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static int davinci_pcm_mmap(struct snd_pcm_substream *substream,
runtime->dma_bytes);
}

struct snd_pcm_ops davinci_pcm_ops = {
static struct snd_pcm_ops davinci_pcm_ops = {
.open = davinci_pcm_open,
.close = davinci_pcm_close,
.ioctl = snd_pcm_lib_ioctl,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/omap/omap-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static int omap_pcm_mmap(struct snd_pcm_substream *substream,
runtime->dma_bytes);
}

struct snd_pcm_ops omap_pcm_ops = {
static struct snd_pcm_ops omap_pcm_ops = {
.open = omap_pcm_open,
.close = omap_pcm_close,
.ioctl = snd_pcm_lib_ioctl,
Expand Down

0 comments on commit b2a19d0

Please sign in to comment.