All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] ASoC: Intel: Skylake: Print constant literals from format specifier
@ 2019-06-21 11:31 Andy Shevchenko
  2019-08-13 14:42 ` Andy Shevchenko
  2019-08-15 17:14 ` Applied "ASoC: Intel: Skylake: Print constant literals from format specifier" to the asoc tree Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Shevchenko @ 2019-06-21 11:31 UTC (permalink / raw)
  To: Pierre-Louis Bossart, Jie Yang, alsa-devel, Jaroslav Kysela,
	Takashi Iwai
  Cc: Vinod Koul, Mark Brown, Andy Shevchenko, Liam Girdwood

Instead of using two additional "%s" specifiers, put the constant string
literals directly to the format specifier.

Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 sound/soc/intel/skylake/skl-sst.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c
index 13c636dece56..f3e1399450db 100644
--- a/sound/soc/intel/skylake/skl-sst.c
+++ b/sound/soc/intel/skylake/skl-sst.c
@@ -421,8 +421,7 @@ static int skl_load_module(struct sst_dsp *ctx, u16 mod_id, u8 *guid)
 	int ret = 0;
 	char mod_name[64]; /* guid str = 32 chars + 4 hyphens */
 
-	snprintf(mod_name, sizeof(mod_name), "%s%pUL%s",
-					     "intel/dsp_fw_", guid, ".bin");
+	snprintf(mod_name, sizeof(mod_name), "intel/dsp_fw_%pUL.bin", guid);
 
 	module_entry = skl_module_get_from_id(ctx, mod_id);
 	if (module_entry == NULL) {
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] ASoC: Intel: Skylake: Print constant literals from format specifier
  2019-06-21 11:31 [PATCH v1] ASoC: Intel: Skylake: Print constant literals from format specifier Andy Shevchenko
@ 2019-08-13 14:42 ` Andy Shevchenko
  2019-08-13 14:52   ` Pierre-Louis Bossart
  2019-08-15 17:14 ` Applied "ASoC: Intel: Skylake: Print constant literals from format specifier" to the asoc tree Mark Brown
  1 sibling, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2019-08-13 14:42 UTC (permalink / raw)
  To: Pierre-Louis Bossart, Jie Yang, alsa-devel, Jaroslav Kysela,
	Takashi Iwai
  Cc: Vinod Koul, Mark Brown, Liam Girdwood

On Fri, Jun 21, 2019 at 02:31:16PM +0300, Andy Shevchenko wrote:
> Instead of using two additional "%s" specifiers, put the constant string
> literals directly to the format specifier.
> 

Pierre, does it look good to you?

> Cc: Liam Girdwood <lgirdwood@gmail.com>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Vinod Koul <vkoul@kernel.org>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  sound/soc/intel/skylake/skl-sst.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c
> index 13c636dece56..f3e1399450db 100644
> --- a/sound/soc/intel/skylake/skl-sst.c
> +++ b/sound/soc/intel/skylake/skl-sst.c
> @@ -421,8 +421,7 @@ static int skl_load_module(struct sst_dsp *ctx, u16 mod_id, u8 *guid)
>  	int ret = 0;
>  	char mod_name[64]; /* guid str = 32 chars + 4 hyphens */
>  
> -	snprintf(mod_name, sizeof(mod_name), "%s%pUL%s",
> -					     "intel/dsp_fw_", guid, ".bin");
> +	snprintf(mod_name, sizeof(mod_name), "intel/dsp_fw_%pUL.bin", guid);
>  
>  	module_entry = skl_module_get_from_id(ctx, mod_id);
>  	if (module_entry == NULL) {
> -- 
> 2.20.1
> 

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] ASoC: Intel: Skylake: Print constant literals from format specifier
  2019-08-13 14:42 ` Andy Shevchenko
@ 2019-08-13 14:52   ` Pierre-Louis Bossart
  2019-08-13 15:15     ` Cezary Rojewski
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre-Louis Bossart @ 2019-08-13 14:52 UTC (permalink / raw)
  To: Andy Shevchenko, Jie Yang, alsa-devel, Rojewski, Cezary, Takashi Iwai
  Cc: Vinod Koul, Mark Brown, Liam Girdwood

On 8/13/19 9:42 AM, Andy Shevchenko wrote:
> On Fri, Jun 21, 2019 at 02:31:16PM +0300, Andy Shevchenko wrote:
>> Instead of using two additional "%s" specifiers, put the constant string
>> literals directly to the format specifier.
>>
> 
> Pierre, does it look good to you?

LGTM but Cezary should chime in for changes to the Skylake driver.

> 
>> Cc: Liam Girdwood <lgirdwood@gmail.com>
>> Cc: Mark Brown <broonie@kernel.org>
>> Cc: Vinod Koul <vkoul@kernel.org>
>> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>> ---
>>   sound/soc/intel/skylake/skl-sst.c | 3 +--
>>   1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c
>> index 13c636dece56..f3e1399450db 100644
>> --- a/sound/soc/intel/skylake/skl-sst.c
>> +++ b/sound/soc/intel/skylake/skl-sst.c
>> @@ -421,8 +421,7 @@ static int skl_load_module(struct sst_dsp *ctx, u16 mod_id, u8 *guid)
>>   	int ret = 0;
>>   	char mod_name[64]; /* guid str = 32 chars + 4 hyphens */
>>   
>> -	snprintf(mod_name, sizeof(mod_name), "%s%pUL%s",
>> -					     "intel/dsp_fw_", guid, ".bin");
>> +	snprintf(mod_name, sizeof(mod_name), "intel/dsp_fw_%pUL.bin", guid);
>>   
>>   	module_entry = skl_module_get_from_id(ctx, mod_id);
>>   	if (module_entry == NULL) {
>> -- 
>> 2.20.1
>>
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] ASoC: Intel: Skylake: Print constant literals from format specifier
  2019-08-13 14:52   ` Pierre-Louis Bossart
@ 2019-08-13 15:15     ` Cezary Rojewski
  0 siblings, 0 replies; 5+ messages in thread
From: Cezary Rojewski @ 2019-08-13 15:15 UTC (permalink / raw)
  To: Pierre-Louis Bossart, Andy Shevchenko
  Cc: alsa-devel, Jie Yang, Takashi Iwai, Liam Girdwood, Vinod Koul,
	Mark Brown

On 2019-08-13 16:52, Pierre-Louis Bossart wrote:
> On 8/13/19 9:42 AM, Andy Shevchenko wrote:
>> On Fri, Jun 21, 2019 at 02:31:16PM +0300, Andy Shevchenko wrote:
>>> Instead of using two additional "%s" specifiers, put the constant string
>>> literals directly to the format specifier.
>>>
>>
>> Pierre, does it look good to you?
> 
> LGTM but Cezary should chime in for changes to the Skylake driver.

Seems this one escaped my eye. Looks good to me too.

>>> Cc: Liam Girdwood <lgirdwood@gmail.com>
>>> Cc: Mark Brown <broonie@kernel.org>
>>> Cc: Vinod Koul <vkoul@kernel.org>
>>> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>>> ---
>>>   sound/soc/intel/skylake/skl-sst.c | 3 +--
>>>   1 file changed, 1 insertion(+), 2 deletions(-)
>>>
>>> diff --git a/sound/soc/intel/skylake/skl-sst.c 
>>> b/sound/soc/intel/skylake/skl-sst.c
>>> index 13c636dece56..f3e1399450db 100644
>>> --- a/sound/soc/intel/skylake/skl-sst.c
>>> +++ b/sound/soc/intel/skylake/skl-sst.c
>>> @@ -421,8 +421,7 @@ static int skl_load_module(struct sst_dsp *ctx, 
>>> u16 mod_id, u8 *guid)
>>>       int ret = 0;
>>>       char mod_name[64]; /* guid str = 32 chars + 4 hyphens */
>>> -    snprintf(mod_name, sizeof(mod_name), "%s%pUL%s",
>>> -                         "intel/dsp_fw_", guid, ".bin");
>>> +    snprintf(mod_name, sizeof(mod_name), "intel/dsp_fw_%pUL.bin", 
>>> guid);
>>>       module_entry = skl_module_get_from_id(ctx, mod_id);
>>>       if (module_entry == NULL) {
>>> -- 
>>> 2.20.1
>>>
>>
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Applied "ASoC: Intel: Skylake: Print constant literals from format specifier" to the asoc tree
  2019-06-21 11:31 [PATCH v1] ASoC: Intel: Skylake: Print constant literals from format specifier Andy Shevchenko
  2019-08-13 14:42 ` Andy Shevchenko
@ 2019-08-15 17:14 ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2019-08-15 17:14 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: alsa-devel, Takashi Iwai, Jie Yang, Pierre-Louis Bossart,
	Liam Girdwood, Vinod Koul, Mark Brown

The patch

   ASoC: Intel: Skylake: Print constant literals from format specifier

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From ff30779bd50eb823e2e75cfc7cc8a3373bfa3fd9 Mon Sep 17 00:00:00 2001
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Fri, 21 Jun 2019 14:31:16 +0300
Subject: [PATCH] ASoC: Intel: Skylake: Print constant literals from format
 specifier

Instead of using two additional "%s" specifiers, put the constant string
literals directly to the format specifier.

Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20190621113116.47525-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/intel/skylake/skl-sst.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c
index 8af7546def1f..61a8e4756a2b 100644
--- a/sound/soc/intel/skylake/skl-sst.c
+++ b/sound/soc/intel/skylake/skl-sst.c
@@ -413,8 +413,7 @@ static int skl_load_module(struct sst_dsp *ctx, u16 mod_id, u8 *guid)
 	int ret = 0;
 	char mod_name[64]; /* guid str = 32 chars + 4 hyphens */
 
-	snprintf(mod_name, sizeof(mod_name), "%s%pUL%s",
-					     "intel/dsp_fw_", guid, ".bin");
+	snprintf(mod_name, sizeof(mod_name), "intel/dsp_fw_%pUL.bin", guid);
 
 	module_entry = skl_module_get_from_id(ctx, mod_id);
 	if (module_entry == NULL) {
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-15 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-21 11:31 [PATCH v1] ASoC: Intel: Skylake: Print constant literals from format specifier Andy Shevchenko
2019-08-13 14:42 ` Andy Shevchenko
2019-08-13 14:52   ` Pierre-Louis Bossart
2019-08-13 15:15     ` Cezary Rojewski
2019-08-15 17:14 ` Applied "ASoC: Intel: Skylake: Print constant literals from format specifier" to the asoc tree Mark Brown

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.