mtd: constify of_device_id array
of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
f5cd2ae1e4
commit
6661044365
4 changed files with 5 additions and 5 deletions
|
@ -2117,7 +2117,7 @@ static int docg3_release(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static struct of_device_id docg3_dt_ids[] = {
|
||||
static const struct of_device_id docg3_dt_ids[] = {
|
||||
{ .compatible = "m-systems,diskonchip-g3" },
|
||||
{}
|
||||
};
|
||||
|
|
|
@ -147,7 +147,7 @@ static void of_free_probes(const char * const *probes)
|
|||
kfree(probes);
|
||||
}
|
||||
|
||||
static struct of_device_id of_flash_match[];
|
||||
static const struct of_device_id of_flash_match[];
|
||||
static int of_flash_probe(struct platform_device *dev)
|
||||
{
|
||||
const char * const *part_probe_types;
|
||||
|
@ -327,7 +327,7 @@ static int of_flash_probe(struct platform_device *dev)
|
|||
return err;
|
||||
}
|
||||
|
||||
static struct of_device_id of_flash_match[] = {
|
||||
static const struct of_device_id of_flash_match[] = {
|
||||
{
|
||||
.compatible = "cfi-flash",
|
||||
.data = (void *)"cfi_probe",
|
||||
|
|
|
@ -837,7 +837,7 @@ static int mpc5121_nfc_remove(struct platform_device *op)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct of_device_id mpc5121_nfc_match[] = {
|
||||
static const struct of_device_id mpc5121_nfc_match[] = {
|
||||
{ .compatible = "fsl,mpc5121-nfc", },
|
||||
{},
|
||||
};
|
||||
|
|
|
@ -662,7 +662,7 @@ static int fsl_qspi_nor_setup_last(struct fsl_qspi *q)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct of_device_id fsl_qspi_dt_ids[] = {
|
||||
static const struct of_device_id fsl_qspi_dt_ids[] = {
|
||||
{ .compatible = "fsl,vf610-qspi", .data = (void *)&vybrid_data, },
|
||||
{ .compatible = "fsl,imx6sx-qspi", .data = (void *)&imx6sx_data, },
|
||||
{ /* sentinel */ }
|
||||
|
|
Loading…
Reference in a new issue