aboutsummaryrefslogtreecommitdiff
path: root/include/sound/hdaudio.h
diff options
context:
space:
mode:
authorGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-01-11 12:30:17 +0100
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-01-27 13:45:52 +0100
commit2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6 (patch)
treeeee82ee42e4aa7832dffd9f391f8d885e1d99f6c /include/sound/hdaudio.h
parentxen/xenbus: move to_xenbus_device() to use container_of_const() (diff)
downloadlinux-2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6.tar.gz
linux-2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6.tar.bz2
linux-2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6.zip
driver core: make struct bus_type.uevent() take a const *
The uevent() callback in struct bus_type should not be modifying the device that is passed into it, so mark it as a const * and propagate the function signature changes out into all relevant subsystems that use this callback. Acked-by: Rafael J. Wysocki <rafael@kernel.org> Acked-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230111113018.459199-16-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/sound/hdaudio.h')
-rw-r--r--include/sound/hdaudio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h
index a6872537724d..1c45664e0e5a 100644
--- a/include/sound/hdaudio.h
+++ b/include/sound/hdaudio.h
@@ -123,7 +123,7 @@ void snd_hdac_device_exit(struct hdac_device *dev);
int snd_hdac_device_register(struct hdac_device *codec);
void snd_hdac_device_unregister(struct hdac_device *codec);
int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name);
-int snd_hdac_codec_modalias(struct hdac_device *hdac, char *buf, size_t size);
+int snd_hdac_codec_modalias(const struct hdac_device *hdac, char *buf, size_t size);
int snd_hdac_refresh_widgets(struct hdac_device *codec);