From: Russell King Date: Wed, 31 Aug 2016 07:49:46 +0000 (+0100) Subject: pcmcia: soc_common: constify pcmcia_low_level ops pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8f9ce556ba2fca6b9abdfac508afb9905aac6b8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git pcmcia: soc_common: constify pcmcia_low_level ops pointer Constify the pcmcia_low_level operation pointer to soc_pcmcia_init_one() which has no need to modify it. Signed-off-by: Russell King --- diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c index 6138c14a5566..3eb30916be26 100644 --- a/drivers/pcmcia/soc_common.c +++ b/drivers/pcmcia/soc_common.c @@ -744,7 +744,7 @@ static int soc_common_pcmcia_cpufreq_nb(struct notifier_block *nb, #endif void soc_pcmcia_init_one(struct soc_pcmcia_socket *skt, - struct pcmcia_low_level *ops, struct device *dev) + const struct pcmcia_low_level *ops, struct device *dev) { int i; diff --git a/drivers/pcmcia/soc_common.h b/drivers/pcmcia/soc_common.h index f66e2fb1f33f..7833eae86960 100644 --- a/drivers/pcmcia/soc_common.h +++ b/drivers/pcmcia/soc_common.h @@ -149,7 +149,7 @@ struct soc_pcmcia_timing { extern void soc_common_pcmcia_get_timing(struct soc_pcmcia_socket *, struct soc_pcmcia_timing *); void soc_pcmcia_init_one(struct soc_pcmcia_socket *skt, - struct pcmcia_low_level *ops, struct device *dev); + const struct pcmcia_low_level *ops, struct device *dev); void soc_pcmcia_remove_one(struct soc_pcmcia_socket *skt); int soc_pcmcia_add_one(struct soc_pcmcia_socket *skt); int soc_pcmcia_request_gpiods(struct soc_pcmcia_socket *skt);