[alsa-devel] [PATCH] fix format type mismatch in sound/pci/hda/patch_sigmatel.c

Takashi Iwai tiwai at suse.de
Wed May 21 11:12:27 CEST 2014


At Tue, 20 May 2014 19:19:24 +0200,
Toralf Förster wrote:
> 
> Signed-off-by: Toralf Förster <toralf.foerster at gmx.de>

Thanks, applied.


Takashi

> ---
>  sound/pci/hda/patch_sigmatel.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
> index 75515b4..7f40a15 100644
> --- a/sound/pci/hda/patch_sigmatel.c
> +++ b/sound/pci/hda/patch_sigmatel.c
> @@ -795,7 +795,7 @@ static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity)
>  	}
>  
>  	while ((dev = dmi_find_device(DMI_DEV_TYPE_OEM_STRING, NULL, dev))) {
> -		if (sscanf(dev->name, "HP_Mute_LED_%d_%x",
> +		if (sscanf(dev->name, "HP_Mute_LED_%u_%x",
>  			   &spec->gpio_led_polarity,
>  			   &spec->gpio_led) == 2) {
>  			unsigned int max_gpio;
> @@ -808,7 +808,7 @@ static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity)
>  				spec->vref_mute_led_nid = spec->gpio_led;
>  			return 1;
>  		}
> -		if (sscanf(dev->name, "HP_Mute_LED_%d",
> +		if (sscanf(dev->name, "HP_Mute_LED_%u",
>  			   &spec->gpio_led_polarity) == 1) {
>  			set_hp_led_gpio(codec);
>  			return 1;
> -- 
> 1.9.3
> 


More information about the Alsa-devel mailing list