]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: dw_mmc: constify dw_mci_idmac_ops in exynos back-end
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Nov 2012 21:55:31 +0000 (22:55 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 6 Nov 2012 22:13:47 +0000 (17:13 -0500)
commit9c80e2e5eab17ea4e9f9786601bd1f9fdc653a6a
tree3d1eff7276b47685b154d94c6e1bdd06566cac46
parent05d79af43bc9f66f4765389540187e98daf29267
mmc: dw_mmc: constify dw_mci_idmac_ops in exynos back-end

The of_device_id match data is now marked as const and
must not be modified. This changes the dw_mmc to mark
all pointers passing the dw_mci_drv_data or dw_mci_dma_ops
structures as const, and also marks the static definitions
as const.

drivers/mmc/host/dw_mmc-exynos.c: In function 'dw_mci_exynos_probe':
drivers/mmc/host/dw_mmc-exynos.c:234:11: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Thomas Abraham <thomas.abraham@linaro.org>
Cc: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc-exynos.c
drivers/mmc/host/dw_mmc-pltfm.c
drivers/mmc/host/dw_mmc-pltfm.h
drivers/mmc/host/dw_mmc.c
include/linux/mmc/dw_mmc.h