mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 19:05:39 +00:00
mtd: rawnand: mxc: Use a single line for of_device_id
The .compatible and .data pairs can be stored in a single line, which makes the code more concise. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20201204145818.32739-2-festevam@gmail.com
This commit is contained in:
parent
5876f2d93d
commit
5e214b2554
@ -1610,22 +1610,11 @@ static inline int is_imx53_nfc(struct mxc_nand_host *host)
|
||||
}
|
||||
|
||||
static const struct of_device_id mxcnd_dt_ids[] = {
|
||||
{
|
||||
.compatible = "fsl,imx21-nand",
|
||||
.data = &imx21_nand_devtype_data,
|
||||
}, {
|
||||
.compatible = "fsl,imx27-nand",
|
||||
.data = &imx27_nand_devtype_data,
|
||||
}, {
|
||||
.compatible = "fsl,imx25-nand",
|
||||
.data = &imx25_nand_devtype_data,
|
||||
}, {
|
||||
.compatible = "fsl,imx51-nand",
|
||||
.data = &imx51_nand_devtype_data,
|
||||
}, {
|
||||
.compatible = "fsl,imx53-nand",
|
||||
.data = &imx53_nand_devtype_data,
|
||||
},
|
||||
{ .compatible = "fsl,imx21-nand", .data = &imx21_nand_devtype_data, },
|
||||
{ .compatible = "fsl,imx27-nand", .data = &imx27_nand_devtype_data, },
|
||||
{ .compatible = "fsl,imx25-nand", .data = &imx25_nand_devtype_data, },
|
||||
{ .compatible = "fsl,imx51-nand", .data = &imx51_nand_devtype_data, },
|
||||
{ .compatible = "fsl,imx53-nand", .data = &imx53_nand_devtype_data, },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, mxcnd_dt_ids);
|
||||
|
Loading…
x
Reference in New Issue
Block a user