]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: core: Treat snd_device_ops as const
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Jan 2020 08:16:19 +0000 (09:16 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Jan 2020 08:23:50 +0000 (09:23 +0100)
commite583683eb5759bc49450de702559c5c6f16b3a47
treed1c492e263fb25a53d8c930b2620389827344c1c
parentad42235ad62c0bea0707028439633020a03d2277
ALSA: core: Treat snd_device_ops as const

This is a preliminary patch to allow const for snd_device_ops
definitions in each driver's code.  The ops reference is read-only,
hence it can be declared as const for further optimization.

There should be no functional changes by this patch.

Link: https://lore.kernel.org/r/20200103081714.9560-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
sound/core/device.c