Commit 09e3bdfe authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

iio: adc: standardize on formatting for id match tables

This is a frequent minor comment in reviews, so start cleaning up
existing drivers in the hope we get fewer cases of cut and paste.

There are not kernel wide rules for these, but for IIO the style
that I prefer (and hence most common) is:

- Space after { and before }
- No comma after terminator { }

This may cause merge conflicts but they should be trivial to resolve
hence I have not broken this into per driver patches.

Link: https://patch.msgid.link/20240818180912.719399-1-jic23@kernel.org


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 07b24126
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ static int ad7091r5_i2c_probe(struct i2c_client *i2c)

static const struct of_device_id ad7091r5_dt_ids[] = {
	{ .compatible = "adi,ad7091r5", .data = &ad7091r5_init_info },
	{},
	{ }
};
MODULE_DEVICE_TABLE(of, ad7091r5_dt_ids);

+2 −2
Original line number Diff line number Diff line
@@ -1008,7 +1008,7 @@ static const struct of_device_id ad7124_of_match[] = {
		.data = &ad7124_chip_info_tbl[ID_AD7124_4], },
	{ .compatible = "adi,ad7124-8",
		.data = &ad7124_chip_info_tbl[ID_AD7124_8], },
	{ },
	{ }
};
MODULE_DEVICE_TABLE(of, ad7124_of_match);

+2 −2
Original line number Diff line number Diff line
@@ -307,7 +307,7 @@ MODULE_DEVICE_TABLE(spi, ad7292_id_table);

static const struct of_device_id ad7292_of_match[] = {
	{ .compatible = "adi,ad7292" },
	{ },
	{ }
};
MODULE_DEVICE_TABLE(of, ad7292_of_match);

+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ static const struct of_device_id ad7606_of_match[] = {
	{ .compatible = "adi,ad7606-4" },
	{ .compatible = "adi,ad7606-6" },
	{ .compatible = "adi,ad7606-8" },
	{ },
	{ }
};
MODULE_DEVICE_TABLE(of, ad7606_of_match);

+2 −2
Original line number Diff line number Diff line
@@ -345,7 +345,7 @@ static const struct of_device_id ad7606_of_match[] = {
	{ .compatible = "adi,ad7606-8" },
	{ .compatible = "adi,ad7606b" },
	{ .compatible = "adi,ad7616" },
	{ },
	{ }
};
MODULE_DEVICE_TABLE(of, ad7606_of_match);

Loading