mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 11:44:01 +08:00
8e2b36ea6e
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>
21 lines
697 B
C
21 lines
697 B
C
/*
|
|
* Synopsys DesignWare Multimedia Card Interface Platform driver
|
|
*
|
|
* Copyright (C) 2012, Samsung Electronics Co., Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef _DW_MMC_PLTFM_H_
|
|
#define _DW_MMC_PLTFM_H_
|
|
|
|
extern int dw_mci_pltfm_register(struct platform_device *pdev,
|
|
const struct dw_mci_drv_data *drv_data);
|
|
extern int __devexit dw_mci_pltfm_remove(struct platform_device *pdev);
|
|
extern const struct dev_pm_ops dw_mci_pltfm_pmops;
|
|
|
|
#endif /* _DW_MMC_PLTFM_H_ */
|