diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:16:35 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:24:06 +0100 |
commit | e382d7fcfc3ff21c8ba97a29bd451a289f57b757 (patch) | |
tree | 00cc3962afdfd5d33427304a8a8b45b2a6d80e1d /Documentation/sound | |
parent | c3b53df3d00848936b286c41fae09cf9a5192ce0 (diff) | |
download | linux-e382d7fcfc3ff21c8ba97a29bd451a289f57b757.tar.gz linux-e382d7fcfc3ff21c8ba97a29bd451a289f57b757.tar.bz2 linux-e382d7fcfc3ff21c8ba97a29bd451a289f57b757.zip |
ALSA: docs: Constify snd_device_ops definitions
Update the documentation for adding the const prefix to snd_device_ops
definitions as well.
Link: https://lore.kernel.org/r/20200103081714.9560-20-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation/sound')
-rw-r--r-- | Documentation/sound/kernel-api/writing-an-alsa-driver.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst index f169d58ca019..7b1ba1e447b9 100644 --- a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst +++ b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst @@ -259,7 +259,7 @@ to details explained in the following section. { struct mychip *chip; int err; - static struct snd_device_ops ops = { + static const struct snd_device_ops ops = { .dev_free = snd_mychip_dev_free, }; @@ -675,7 +675,7 @@ low-level device with a specified ``ops``, :: - static struct snd_device_ops ops = { + static const struct snd_device_ops ops = { .dev_free = snd_mychip_dev_free, }; .... @@ -761,7 +761,7 @@ destructor and PCI entries. Example code is shown first, below. { struct mychip *chip; int err; - static struct snd_device_ops ops = { + static const struct snd_device_ops ops = { .dev_free = snd_mychip_dev_free, }; |