浏览代码

mmc: rtsx: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Krzysztof Kozlowski 10 年之前
父节点
当前提交
f2483b0d19
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/mmc/host/rtsx_pci_sdmmc.c
  2. 1 1
      drivers/mmc/host/rtsx_usb_sdmmc.c

+ 1 - 1
drivers/mmc/host/rtsx_pci_sdmmc.c

@@ -1474,7 +1474,7 @@ static int rtsx_pci_sdmmc_drv_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id rtsx_pci_sdmmc_ids[] = {
+static const struct platform_device_id rtsx_pci_sdmmc_ids[] = {
 	{
 		.name = DRV_NAME_RTSX_PCI_SDMMC,
 	}, {

+ 1 - 1
drivers/mmc/host/rtsx_usb_sdmmc.c

@@ -1439,7 +1439,7 @@ static int rtsx_usb_sdmmc_drv_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id rtsx_usb_sdmmc_ids[] = {
+static const struct platform_device_id rtsx_usb_sdmmc_ids[] = {
 	{
 		.name = "rtsx_usb_sdmmc",
 	}, {