summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>2026-05-05 12:39:28 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2026-05-11 16:59:43 +0200
commit5808ef063b5e9342cb223bb9d07a6d5f6ac8711d (patch)
treedca9ee3ac00c9e72738ce08621e7af9c55b09425 /drivers/mmc
parent4a3e92e8cfb9741cb687b14fc6ca81714b4c2c26 (diff)
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 'drivers/mmc')
-rw-r--r--drivers/mmc/host/tifm_sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/tifm_sd.c b/drivers/mmc/host/tifm_sd.c
index aebffd3ebf60..28ab2526dab1 100644
--- a/drivers/mmc/host/tifm_sd.c
+++ b/drivers/mmc/host/tifm_sd.c
@@ -1041,7 +1041,7 @@ static int tifm_sd_resume(struct tifm_dev *sock)
#endif /* CONFIG_PM */
-static struct tifm_device_id tifm_sd_id_tbl[] = {
+static const struct tifm_device_id tifm_sd_id_tbl[] = {
{ TIFM_TYPE_SD }, { }
};
MODULE_DEVICE_TABLE(tifm, tifm_sd_id_tbl);