ALSA: aloop: Constify ops structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 20 Nov 2020 23:10:46 +0000 (00:10 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 21 Nov 2020 08:30:35 +0000 (09:30 +0100)
commite714fa93898f3b1050356a16bef72168166ade2a
tree329b7dbe2828197964bcb8e5120d98737ed17398
parent45bbe6c95e427511f8d5a401d886b5261c673e30
ALSA: aloop: Constify ops structs

The only usage of the ops field in the loopback_cable struct is to call
its members, the field it self is never changed. Make it a pointer to
const. This allows us to constify two static loopback_ops structs to
allow the compiler to put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20201120231046.76758-1-rikard.falkeborn@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/aloop.c