[PATCH v2 2/6] iio: light: vcnl4000: move device tree entries into one line
From: Erikas Bitovtas
Date: Sun Apr 05 2026 - 12:10:25 EST
Make device tree entries one line each to save space and LOC.
Signed-off-by: Erikas Bitovtas <xerikasxx@xxxxxxxxx>
---
drivers/iio/light/vcnl4000.c | 35 +++++++----------------------------
1 file changed, 7 insertions(+), 28 deletions(-)
diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c
index 72d68d54864e..604e7412bea7 100644
--- a/drivers/iio/light/vcnl4000.c
+++ b/drivers/iio/light/vcnl4000.c
@@ -2079,35 +2079,14 @@ static int vcnl4000_probe(struct i2c_client *client)
}
static const struct of_device_id vcnl_4000_of_match[] = {
- {
- .compatible = "capella,cm36672p",
- .data = (void *)CM36672P,
- },
+ { .compatible = "capella,cm36672p", .data = (void *)CM36672P, },
/* Capella CM36686 is fully compatible with Vishay VCNL4040 */
- {
- .compatible = "capella,cm36686",
- .data = (void *)VCNL4040,
- },
- {
- .compatible = "vishay,vcnl4000",
- .data = (void *)VCNL4000,
- },
- {
- .compatible = "vishay,vcnl4010",
- .data = (void *)VCNL4010,
- },
- {
- .compatible = "vishay,vcnl4020",
- .data = (void *)VCNL4010,
- },
- {
- .compatible = "vishay,vcnl4040",
- .data = (void *)VCNL4040,
- },
- {
- .compatible = "vishay,vcnl4200",
- .data = (void *)VCNL4200,
- },
+ { .compatible = "capella,cm36686", .data = (void *)VCNL4040, },
+ { .compatible = "vishay,vcnl4000", .data = (void *)VCNL4000, },
+ { .compatible = "vishay,vcnl4010", .data = (void *)VCNL4010, },
+ { .compatible = "vishay,vcnl4020", .data = (void *)VCNL4010, },
+ { .compatible = "vishay,vcnl4040", .data = (void *)VCNL4040, },
+ { .compatible = "vishay,vcnl4200", .data = (void *)VCNL4200, },
{ }
};
MODULE_DEVICE_TABLE(of, vcnl_4000_of_match);
--
2.53.0