1 From b77c63aa6c620edb9ad908b5660d24fb3e27bd12 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 7 Mar 2023 11:52:36 +0000
4 Subject: [PATCH] hwmon: (aht10): Add DT compatible string
6 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
8 drivers/hwmon/aht10.c | 7 +++++++
9 1 file changed, 7 insertions(+)
11 --- a/drivers/hwmon/aht10.c
12 +++ b/drivers/hwmon/aht10.c
13 @@ -332,9 +332,16 @@ static const struct i2c_device_id aht10_
15 MODULE_DEVICE_TABLE(i2c, aht10_id);
17 +static const struct of_device_id aht10_of_id[] = {
18 + { .compatible = "aosong,aht10", },
21 +MODULE_DEVICE_TABLE(of, aht10_of_id);
23 static struct i2c_driver aht10_driver = {
26 + .of_match_table = aht10_of_id,