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>
Цей коміт міститься в:
@@ -27,7 +27,7 @@
|
||||
* Return: Zero if successful, or a negative error code on failure.
|
||||
*/
|
||||
int snd_device_new(struct snd_card *card, enum snd_device_type type,
|
||||
void *device_data, struct snd_device_ops *ops)
|
||||
void *device_data, const struct snd_device_ops *ops)
|
||||
{
|
||||
struct snd_device *dev;
|
||||
struct list_head *p;
|
||||
|
Посилання в новій задачі
Заблокувати користувача