]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: hda/ca0132: Use const char * for strings
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Jun 2025 06:48:01 +0000 (08:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Jun 2025 06:53:00 +0000 (08:53 +0200)
commit30f85eddbdebba7665f9b7b772821e588547ca9e
tree54d0f421499e3d5d14797c3431f61e6a36053fe6
parent9ca30a1b007d5fefb5752428f852a2d8d7219c1c
ALSA: hda/ca0132: Use const char * for strings

Some static strings have been stored in fixed char arrays although
they could be gracefully "const char *" instead.  Also, a few other
definitions use the raw "char *" without const.

Converting those to "const char *" will save some memory and give more
safety, in addition to a side-effect to address the bogus compiler
warning with snprintf().

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506121025.G9uunMlx-lkp@intel.com/
Link: https://patch.msgid.link/20250612064802.1170-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c