mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
ASoC: fsi: Move inline fsi_stream_is_play() before use
With gcc 4.1.2: sound/soc/sh/fsi.c:304: warning: ‘fsi_stream_is_play’ declared inline after being called sound/soc/sh/fsi.c:304: warning: previous declaration of ‘fsi_stream_is_play’ was here Move fsi_stream_is_play() up to fix this, removing the need for a forward declaration as well. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2ea659a9ef
commit
3048e76c93
1 changed files with 6 additions and 7 deletions
|
@ -301,7 +301,12 @@ struct fsi_master {
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int fsi_stream_is_play(struct fsi_priv *fsi, struct fsi_stream *io);
|
static inline int fsi_stream_is_play(struct fsi_priv *fsi,
|
||||||
|
struct fsi_stream *io)
|
||||||
|
{
|
||||||
|
return &fsi->playback == io;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* basic read write function
|
* basic read write function
|
||||||
|
@ -489,12 +494,6 @@ static void fsi_count_fifo_err(struct fsi_priv *fsi)
|
||||||
/*
|
/*
|
||||||
* fsi_stream_xx() function
|
* fsi_stream_xx() function
|
||||||
*/
|
*/
|
||||||
static inline int fsi_stream_is_play(struct fsi_priv *fsi,
|
|
||||||
struct fsi_stream *io)
|
|
||||||
{
|
|
||||||
return &fsi->playback == io;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct fsi_stream *fsi_stream_get(struct fsi_priv *fsi,
|
static inline struct fsi_stream *fsi_stream_get(struct fsi_priv *fsi,
|
||||||
struct snd_pcm_substream *substream)
|
struct snd_pcm_substream *substream)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue