ALSA: hda/tas2781: Use standard clamp() macro
authorTakashi Iwai <tiwai@suse.de>
Thu, 31 Aug 2023 12:36:20 +0000 (14:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 31 Aug 2023 12:36:46 +0000 (14:36 +0200)
commitda42bcb30e001d676a1c4cf7f26d15d775279f6c
tree55f6511ee41a86d3f4f0bf945aab562366ac2701
parent358040e3807754944dbddf948a23c6d914297ed7
ALSA: hda/tas2781: Use standard clamp() macro

Instead of the home-made clamp() function, use the standard macro().

Fixes: 5be27f1e3ec9 ("ALSA: hda/tas2781: Add tas2781 HDA driver")
Link: https://lore.kernel.org/r/20230831123620.23064-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/tas2781_hda_i2c.c