summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>2026-05-05 13:39:28 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2026-05-11 17:59:43 +0300
commit5808ef063b5e9342cb223bb9d07a6d5f6ac8711d (patch)
treedca9ee3ac00c9e72738ce08621e7af9c55b09425 /include/linux
parent4a3e92e8cfb9741cb687b14fc6ca81714b4c2c26 (diff)
downloadlinux-5808ef063b5e9342cb223bb9d07a6d5f6ac8711d.tar.xz
memstick: Constify the driver id_table
Just like all other driver structures, the id_table should never be modified by core subsystem parts. Constify this member and actual data structures for increased code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tifm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/tifm.h b/include/linux/tifm.h
index 44073d06710f..752fcfae27fe 100644
--- a/include/linux/tifm.h
+++ b/include/linux/tifm.h
@@ -97,7 +97,7 @@ struct tifm_dev {
};
struct tifm_driver {
- struct tifm_device_id *id_table;
+ const struct tifm_device_id *id_table;
int (*probe)(struct tifm_dev *dev);
void (*remove)(struct tifm_dev *dev);
int (*suspend)(struct tifm_dev *dev,