* [PATCH 0/2] ASoC: Intel: skylake - match braces for if-else
@ 2015-06-23 17:10 Vinod Koul
2015-06-23 17:10 ` [PATCH 1/2] ASoC: Intel: skl-pcm.c " Vinod Koul
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Vinod Koul @ 2015-06-23 17:10 UTC (permalink / raw)
To: alsa-devel; +Cc: liam.r.girdwood, tiwai, broonie, Vinod Koul, patches.audio
Coding style mandates that if-else should match braces even if one of them
is a single line statement. Fix it in two places missed earlier
Mark, you can also fold these two patches with SKL driver series (1st and
2nd patch can fold in 1st and 2nd patch respectively) or apply independetly,
either way okay
Vinod Koul (2):
ASoC: Intel: skl-pcm.c match braces for if-else
ASoC: Intel: skl.c match braces for if-else
sound/soc/intel/skylake/skl-pcm.c | 3 ++-
sound/soc/intel/skylake/skl.c | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] ASoC: Intel: skl-pcm.c match braces for if-else
2015-06-23 17:10 [PATCH 0/2] ASoC: Intel: skylake - match braces for if-else Vinod Koul
@ 2015-06-23 17:10 ` Vinod Koul
2015-06-23 17:10 ` [PATCH 2/2] ASoC: Intel: skl.c " Vinod Koul
2015-07-08 18:27 ` [PATCH 0/2] ASoC: Intel: skylake - " Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Vinod Koul @ 2015-06-23 17:10 UTC (permalink / raw)
To: alsa-devel; +Cc: liam.r.girdwood, tiwai, broonie, Vinod Koul, patches.audio
Coding style madates that if-else should match braces even if one of them is
a single line statement
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
sound/soc/intel/skylake/skl-pcm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
index c8adaabdef12..1011d88d6e32 100644
--- a/sound/soc/intel/skylake/skl-pcm.c
+++ b/sound/soc/intel/skylake/skl-pcm.c
@@ -845,8 +845,9 @@ static int skl_get_time_info(struct snd_pcm_substream *substream,
audio_tstamp_report->accuracy_report = 1; /* rest of struct is valid */
audio_tstamp_report->accuracy = 42; /* 24MHzWallClk == 42ns resolution */
- } else
+ } else {
audio_tstamp_report->actual_type = SNDRV_PCM_AUDIO_TSTAMP_TYPE_DEFAULT;
+ }
return 0;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] ASoC: Intel: skl.c match braces for if-else
2015-06-23 17:10 [PATCH 0/2] ASoC: Intel: skylake - match braces for if-else Vinod Koul
2015-06-23 17:10 ` [PATCH 1/2] ASoC: Intel: skl-pcm.c " Vinod Koul
@ 2015-06-23 17:10 ` Vinod Koul
2015-07-08 18:27 ` [PATCH 0/2] ASoC: Intel: skylake - " Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Vinod Koul @ 2015-06-23 17:10 UTC (permalink / raw)
To: alsa-devel; +Cc: liam.r.girdwood, tiwai, broonie, Vinod Koul, patches.audio
Coding style madates that if-else should match braces even if one of them is
a single line statement
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
sound/soc/intel/skylake/skl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index 0ab02af0325a..1e70e3962c76 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -394,9 +394,9 @@ static int skl_first_init(struct hdac_ext_bus *ebus)
dev_dbg(bus->dev, "chipset global capabilities = 0x%x\n", gcap);
/* allow 64bit DMA address if supported by H/W */
- if (!dma_set_mask(bus->dev, DMA_BIT_MASK(64)))
+ if (!dma_set_mask(bus->dev, DMA_BIT_MASK(64))) {
dma_set_coherent_mask(bus->dev, DMA_BIT_MASK(64));
- else {
+ } else {
dma_set_mask(bus->dev, DMA_BIT_MASK(32));
dma_set_coherent_mask(bus->dev, DMA_BIT_MASK(32));
}
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] ASoC: Intel: skylake - match braces for if-else
2015-06-23 17:10 [PATCH 0/2] ASoC: Intel: skylake - match braces for if-else Vinod Koul
2015-06-23 17:10 ` [PATCH 1/2] ASoC: Intel: skl-pcm.c " Vinod Koul
2015-06-23 17:10 ` [PATCH 2/2] ASoC: Intel: skl.c " Vinod Koul
@ 2015-07-08 18:27 ` Mark Brown
2015-07-09 4:13 ` Vinod Koul
2 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2015-07-08 18:27 UTC (permalink / raw)
To: Vinod Koul; +Cc: liam.r.girdwood, tiwai, alsa-devel, patches.audio
[-- Attachment #1.1: Type: text/plain, Size: 531 bytes --]
On Tue, Jun 23, 2015 at 10:40:11PM +0530, Vinod Koul wrote:
> Coding style mandates that if-else should match braces even if one of them
> is a single line statement. Fix it in two places missed earlier
>
> Mark, you can also fold these two patches with SKL driver series (1st and
> 2nd patch can fold in 1st and 2nd patch respectively) or apply independetly,
> either way okay
I really don't know what that series is any more, sorry. I've got two
pending serieses both identified as Sky Lake and sent after this one.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] ASoC: Intel: skylake - match braces for if-else
2015-07-08 18:27 ` [PATCH 0/2] ASoC: Intel: skylake - " Mark Brown
@ 2015-07-09 4:13 ` Vinod Koul
0 siblings, 0 replies; 5+ messages in thread
From: Vinod Koul @ 2015-07-09 4:13 UTC (permalink / raw)
To: Mark Brown; +Cc: liam.r.girdwood, tiwai, alsa-devel, patches.audio
[-- Attachment #1.1: Type: text/plain, Size: 833 bytes --]
On Wed, Jul 08, 2015 at 07:27:23PM +0100, Mark Brown wrote:
> On Tue, Jun 23, 2015 at 10:40:11PM +0530, Vinod Koul wrote:
> > Coding style mandates that if-else should match braces even if one of them
> > is a single line statement. Fix it in two places missed earlier
> >
> > Mark, you can also fold these two patches with SKL driver series (1st and
> > 2nd patch can fold in 1st and 2nd patch respectively) or apply independetly,
> > either way okay
>
> I really don't know what that series is any more, sorry. I've got two
> pending serieses both identified as Sky Lake and sent after this one.
Hi Mark,
For the last series you said you were okay but had noticed some style
inconsistencies, so I fixed those with this. The updated patchset (rebased)
has these folded in, so this can be ignored.
--
~Vinod
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-09 4:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 17:10 [PATCH 0/2] ASoC: Intel: skylake - match braces for if-else Vinod Koul
2015-06-23 17:10 ` [PATCH 1/2] ASoC: Intel: skl-pcm.c " Vinod Koul
2015-06-23 17:10 ` [PATCH 2/2] ASoC: Intel: skl.c " Vinod Koul
2015-07-08 18:27 ` [PATCH 0/2] ASoC: Intel: skylake - " Mark Brown
2015-07-09 4:13 ` Vinod Koul
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.