ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper
PATCH 1/1 ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper
Remove hard-coded strings by using the str_enabled_disabled() helper function.
--- sound/soc/atmel/atmel-classd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/atmel/atmel-classd.c +2 -1
@@ -11,6 +11,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <linux/string_choices.h> #include <sound/core.h> #include <sound/dmaengine_pcm.h> #include <sound/pcm_params.h>
@@ -275,7 +276,7 @@ static int atmel_classd_component_probe(struct snd_soc_component *component)dev_info (component->dev,"PWM modulation type is %s, non-overlapping is %s\n" , pwm_type[pdata->pwm_type], - pdata->non_overlap_enable?"enabled" :"disabled" ); +str_enabled_disabled (pdata->non_overlap_enable));return 0 ; }
Signature · 1 line
2.48.1
Hi,
Quoted 4 lines · Thorsten Blum
Remove hard-coded strings by using the
str_enabled_disabled()helper function.Signed-off-by Thorsten Blum <[email protected]>
Quoted 17 lines
--- sound/soc/atmel/atmel-classd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)sound/soc/atmel/atmel-classd.c +1
-0@@ -11,6 +11,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <linux/string_choices.h> #include <sound/core.h> #include <sound/dmaengine_pcm.h> #include <sound/pcm_params.h>
sound/soc/atmel/atmel-classd.c static int atmel_classd_component_probe(struct snd_soc_component *component) · line 282
Quoted 8 lines
sound/soc/atmel/atmel-classd.c +1
-1@@ -275,7 +276,7 @@ static int atmel_classd_component_probe(struct snd_soc_component *component)dev_info (component->dev,"PWM modulation type is %s, non-overlapping is %s\n" , pwm_type[pdata->pwm_type], - pdata->non_overlap_enable?"enabled" :"disabled" ); +str_enabled_disabled (pdata->non_overlap_enable));return 0 ; }
Best Regards,
Andrei Simion
Mark Brown
maintainerQuoted 4 lines · Thorsten Blum
Remove hard-coded strings by using the
str_enabled_disabled()helper function.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: atmel: atmel-classd: Use str_enabled_disabled() helper
commit: 88e09306b7e0f8a9e9f9c729ac13ccd11ed9679d
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