sound: make all 'class' structures const
authorIvan Orlov <ivan.orlov0322@gmail.com>
Tue, 20 Jun 2023 17:56:34 +0000 (19:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 21 Jun 2023 05:29:10 +0000 (07:29 +0200)
commit8d0cf150d299148a97653610c256f10c42f85ce0
tree8fcdd51f0de9dfaa0fdf823e05579b4859f1b6d2
parent7ea9ee0064281ef630e038f8dd2f6e8f4030a696
sound: make all 'class' structures const

Now that the driver core allows for struct class to be in read-only
memory, making all 'class' structures to be declared at build time
placing them into read-only memory, instead of having to be dynamically
allocated at load time.

Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Ivan Orlov <ivan.orlov0322@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Geoff Levand <geoff@infradead.org>
Cc: Thierry Reding <treding@nvidia.com>
Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: alsa-devel@alsa-project.org
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20230620175633.641141-2-gregkh@linuxfoundation.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
sound/core/control_led.c
sound/core/init.c
sound/sound_core.c