mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 10:00:03 -04:00
misc: Unify style of of_device_id arrays
Update the various of_device_id arrays to conform to the most used and
generally recommended coding style. That is:
- No comma after the list terminator;
- A comma after an initializer if (and only if) the closing } is not
directly following;
- No explicit zeros in the list terminator;
- A space after an opening { and before a closing }, a single space in
the list terminator;
Adapt the few offenders accordingly.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Romain Gantois <romain.gantois@bootlin.com>
Link: https://patch.msgid.link/fbf51b8f413c516977e2c8a81896221795df77e4.1784299069.git.u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
50b712469c
commit
6658673030
@@ -277,8 +277,8 @@ static const struct i2c_device_id ds1682_id[] = {
|
||||
MODULE_DEVICE_TABLE(i2c, ds1682_id);
|
||||
|
||||
static const struct of_device_id ds1682_of_match[] = {
|
||||
{ .compatible = "dallas,ds1682", },
|
||||
{}
|
||||
{ .compatible = "dallas,ds1682" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, ds1682_of_match);
|
||||
|
||||
|
||||
@@ -2432,8 +2432,8 @@ static void fastrpc_cb_remove(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
static const struct of_device_id fastrpc_match_table[] = {
|
||||
{ .compatible = "qcom,fastrpc-compute-cb", },
|
||||
{}
|
||||
{ .compatible = "qcom,fastrpc-compute-cb" },
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct platform_driver fastrpc_cb_driver = {
|
||||
@@ -2765,7 +2765,7 @@ static int fastrpc_rpmsg_callback(struct rpmsg_device *rpdev, void *data,
|
||||
static const struct of_device_id fastrpc_rpmsg_of_match[] = {
|
||||
{ .compatible = "qcom,kaanapali-fastrpc", .data = &kaanapali_soc_data },
|
||||
{ .compatible = "qcom,fastrpc", .data = &default_soc_data },
|
||||
{ },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, fastrpc_rpmsg_of_match);
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ static void hisi_hikey_usb_remove(struct platform_device *pdev)
|
||||
|
||||
static const struct of_device_id id_table_hisi_hikey_usb[] = {
|
||||
{ .compatible = "hisilicon,usbhub" },
|
||||
{}
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, id_table_hisi_hikey_usb);
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ static union axis_conversion lis3lv02d_axis_map =
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id lis3lv02d_i2c_dt_ids[] = {
|
||||
{ .compatible = "st,lis3lv02d" },
|
||||
{}
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, lis3lv02d_i2c_dt_ids);
|
||||
#endif
|
||||
|
||||
@@ -60,7 +60,7 @@ static union axis_conversion lis3lv02d_axis_normal =
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id lis302dl_spi_dt_ids[] = {
|
||||
{ .compatible = "st,lis302dl-spi" },
|
||||
{}
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, lis302dl_spi_dt_ids);
|
||||
#endif
|
||||
|
||||
@@ -199,7 +199,7 @@ static void open_dice_remove(struct platform_device *pdev)
|
||||
|
||||
static const struct of_device_id open_dice_of_match[] = {
|
||||
{ .compatible = "google,open-dice" },
|
||||
{},
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct platform_driver open_dice_driver = {
|
||||
|
||||
@@ -51,8 +51,8 @@ static int pvpanic_mmio_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
static const struct of_device_id pvpanic_mmio_match[] = {
|
||||
{ .compatible = "qemu,pvpanic-mmio", },
|
||||
{}
|
||||
{ .compatible = "qemu,pvpanic-mmio" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, pvpanic_mmio_match);
|
||||
|
||||
|
||||
@@ -124,8 +124,8 @@ static int qcom_coincell_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
static const struct of_device_id qcom_coincell_match_table[] = {
|
||||
{ .compatible = "qcom,pm8941-coincell", },
|
||||
{}
|
||||
{ .compatible = "qcom,pm8941-coincell" },
|
||||
{ }
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(of, qcom_coincell_match_table);
|
||||
|
||||
@@ -370,7 +370,7 @@ static const struct of_device_id sram_dt_ids[] = {
|
||||
{ .compatible = "nvidia,tegra186-sysram", .data = &tegra_sysram_config },
|
||||
{ .compatible = "nvidia,tegra194-sysram", .data = &tegra_sysram_config },
|
||||
{ .compatible = "nvidia,tegra234-sysram", .data = &tegra_sysram_config },
|
||||
{}
|
||||
{ }
|
||||
};
|
||||
|
||||
static int sram_probe(struct platform_device *pdev)
|
||||
|
||||
@@ -718,7 +718,7 @@ static void fpc202_remove(struct i2c_client *client)
|
||||
|
||||
static const struct of_device_id fpc202_of_match[] = {
|
||||
{ .compatible = "ti,fpc202" },
|
||||
{}
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, fpc202_of_match);
|
||||
|
||||
|
||||
@@ -224,8 +224,8 @@ static void vcpu_stall_detect_remove(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
static const struct of_device_id vcpu_stall_detect_of_match[] = {
|
||||
{ .compatible = "qemu,vcpu-stall-detector", },
|
||||
{}
|
||||
{ .compatible = "qemu,vcpu-stall-detector" },
|
||||
{ }
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(of, vcpu_stall_detect_of_match);
|
||||
|
||||
Reference in New Issue
Block a user