Commit 7deb2b45 authored by Stephen Warren's avatar Stephen Warren Committed by Mark Brown

ASoC: tegra: fix some checkpatch warnings

ERROR: trailing whitespace
ERROR: code indent should use tabs where possible
WARNING: please, no spaces at the start of a line
ERROR: "foo * bar" should be "foo *bar"
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 4df8271e
...@@ -94,7 +94,7 @@ struct tegra_das { ...@@ -94,7 +94,7 @@ struct tegra_das {
* DAS: Digital audio switch (HW module controlled by this driver) * DAS: Digital audio switch (HW module controlled by this driver)
* DAP: Digital audio port (port/pins on Tegra device) * DAP: Digital audio port (port/pins on Tegra device)
* DAC: Digital audio controller (e.g. I2S or AC97 controller elsewhere) * DAC: Digital audio controller (e.g. I2S or AC97 controller elsewhere)
* *
* The Tegra DAS is a mux/cross-bar which can connect each DAP to a specific * The Tegra DAS is a mux/cross-bar which can connect each DAP to a specific
* DAC, or another DAP. When DAPs are connected, one must be the master and * DAC, or another DAP. When DAPs are connected, one must be the master and
* one the slave. Each DAC allows selection of a specific DAP for input, to * one the slave. Each DAC allows selection of a specific DAP for input, to
......
...@@ -144,7 +144,7 @@ static int tegra_i2s_set_fmt(struct snd_soc_dai *dai, ...@@ -144,7 +144,7 @@ static int tegra_i2s_set_fmt(struct snd_soc_dai *dai,
return -EINVAL; return -EINVAL;
} }
i2s->reg_ctrl &= ~(TEGRA_I2S_CTRL_BIT_FORMAT_MASK | i2s->reg_ctrl &= ~(TEGRA_I2S_CTRL_BIT_FORMAT_MASK |
TEGRA_I2S_CTRL_LRCK_MASK); TEGRA_I2S_CTRL_LRCK_MASK);
switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
case SND_SOC_DAIFMT_DSP_A: case SND_SOC_DAIFMT_DSP_A:
...@@ -178,7 +178,7 @@ static int tegra_i2s_hw_params(struct snd_pcm_substream *substream, ...@@ -178,7 +178,7 @@ static int tegra_i2s_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params, struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai) struct snd_soc_dai *dai)
{ {
struct device *dev = substream->pcm->card->dev; struct device *dev = substream->pcm->card->dev;
struct tegra_i2s *i2s = snd_soc_dai_get_drvdata(dai); struct tegra_i2s *i2s = snd_soc_dai_get_drvdata(dai);
u32 reg; u32 reg;
int ret, sample_size, srate, i2sclock, bitcnt; int ret, sample_size, srate, i2sclock, bitcnt;
...@@ -296,7 +296,7 @@ static int tegra_i2s_trigger(struct snd_pcm_substream *substream, int cmd, ...@@ -296,7 +296,7 @@ static int tegra_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
static int tegra_i2s_probe(struct snd_soc_dai *dai) static int tegra_i2s_probe(struct snd_soc_dai *dai)
{ {
struct tegra_i2s * i2s = snd_soc_dai_get_drvdata(dai); struct tegra_i2s *i2s = snd_soc_dai_get_drvdata(dai);
dai->capture_dma_data = &i2s->capture_dma_data; dai->capture_dma_data = &i2s->capture_dma_data;
dai->playback_dma_data = &i2s->playback_dma_data; dai->playback_dma_data = &i2s->playback_dma_data;
...@@ -330,7 +330,7 @@ static const struct snd_soc_dai_driver tegra_i2s_dai_template = { ...@@ -330,7 +330,7 @@ static const struct snd_soc_dai_driver tegra_i2s_dai_template = {
static __devinit int tegra_i2s_platform_probe(struct platform_device *pdev) static __devinit int tegra_i2s_platform_probe(struct platform_device *pdev)
{ {
struct tegra_i2s * i2s; struct tegra_i2s *i2s;
struct resource *mem, *memregion, *dmareq; struct resource *mem, *memregion, *dmareq;
u32 of_dma[2]; u32 of_dma[2];
u32 dma_ch; u32 dma_ch;
......
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