]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ALSA: i2c: pt2258: Use standard print API
authorTakashi Iwai <tiwai@suse.de>
Wed, 7 Aug 2024 13:34:06 +0000 (15:34 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Aug 2024 05:47:23 +0000 (07:47 +0200)
Use the standard print API with dev_*() instead of the old house-baked
one.  It gives better information and allows dynamically control of
debug prints.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240807133452.9424-17-tiwai@suse.de
sound/i2c/other/pt2258.c

index c913f223892ac065f29524f805663e499be390b9..ba38c285241c08eec4abbe330c89e360ba8ad29e 100644 (file)
@@ -63,7 +63,7 @@ int snd_pt2258_reset(struct snd_pt2258 *pt)
 
       __error:
        snd_i2c_unlock(pt->i2c_bus);
-       snd_printk(KERN_ERR "PT2258 reset failed\n");
+       dev_err(pt->card->dev, "PT2258 reset failed\n");
        return -EIO;
 }
 
@@ -124,7 +124,7 @@ static int pt2258_stereo_volume_put(struct snd_kcontrol *kcontrol,
 
       __error:
        snd_i2c_unlock(pt->i2c_bus);
-       snd_printk(KERN_ERR "PT2258 access failed\n");
+       dev_err(pt->card->dev, "PT2258 access failed\n");
        return -EIO;
 }
 
@@ -161,7 +161,7 @@ static int pt2258_switch_put(struct snd_kcontrol *kcontrol,
 
       __error:
        snd_i2c_unlock(pt->i2c_bus);
-       snd_printk(KERN_ERR "PT2258 access failed 2\n");
+       dev_err(pt->card->dev, "PT2258 access failed 2\n");
        return -EIO;
 }