projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdbf048
)
ALSA: drivers: mpu401: constify pnp_device_id
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Thu, 17 Aug 2017 10:06:16 +0000
(15:36 +0530)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 17 Aug 2017 10:42:14 +0000
(12:42 +0200)
pnp_device_id are not supposed to change at runtime. All functions
working with pnp_device_id provided by <linux/pnp.h> work with
const pnp_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/mpu401/mpu401.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/drivers/mpu401/mpu401.c
b/sound/drivers/mpu401/mpu401.c
index 9b86e00d7d95ffada3ac89b52671be20a2d30d38..b6715764cd1c3a3e30536ac57d46d560d369849b 100644
(file)
--- a/
sound/drivers/mpu401/mpu401.c
+++ b/
sound/drivers/mpu401/mpu401.c
@@
-148,7
+148,7
@@
static struct platform_driver snd_mpu401_driver = {
#define IO_EXTENT 2
-static struct pnp_device_id snd_mpu401_pnpids[] = {
+static
const
struct pnp_device_id snd_mpu401_pnpids[] = {
{ .id = "PNPb006" },
{ .id = "" }
};