Skip to content

Commit

Permalink
ASoC: rsnd: tidyup rsnd_dma_ops definition place
Browse files Browse the repository at this point in the history
rsnd_dma_ops is used only from dma.c, rsnd.h doesn't need it.

Signed-off-by: Kuninori Morimoto <[email protected]>
Tested-by: Keita Kobayashi <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
morimoto authored and broonie committed Jul 16, 2015
1 parent 84e9535 commit 98d358a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions sound/soc/sh/rcar/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ struct rsnd_dma_ctrl {
int dmapp_num;
};

struct rsnd_dma_ops {
void (*start)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
void (*stop)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
int (*init)(struct rsnd_dai_stream *io, struct rsnd_dma *dma, int id,
struct rsnd_mod *mod_from, struct rsnd_mod *mod_to);
void (*quit)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
};

#define rsnd_priv_to_dmac(p) ((struct rsnd_dma_ctrl *)(p)->dma)

/*
Expand Down
7 changes: 0 additions & 7 deletions sound/soc/sh/rcar/rsnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,6 @@ void rsnd_path_parse(struct rsnd_priv *priv,
* R-Car DMA
*/
struct rsnd_dma;
struct rsnd_dma_ops {
void (*start)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
void (*stop)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
int (*init)(struct rsnd_dai_stream *io, struct rsnd_dma *dma, int id,
struct rsnd_mod *mod_from, struct rsnd_mod *mod_to);
void (*quit)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
};

struct rsnd_dmaen {
struct dma_chan *chan;
Expand Down

0 comments on commit 98d358a

Please sign in to comment.