diff options
Diffstat (limited to 'target/linux/bcm27xx/patches-6.1/950-0577-hwmon-aht10-Add-DT-compatible-string.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-6.1/950-0577-hwmon-aht10-Add-DT-compatible-string.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-6.1/950-0577-hwmon-aht10-Add-DT-compatible-string.patch b/target/linux/bcm27xx/patches-6.1/950-0577-hwmon-aht10-Add-DT-compatible-string.patch new file mode 100644 index 0000000000..3b316c0fee --- /dev/null +++ b/target/linux/bcm27xx/patches-6.1/950-0577-hwmon-aht10-Add-DT-compatible-string.patch @@ -0,0 +1,29 @@ +From b77c63aa6c620edb9ad908b5660d24fb3e27bd12 Mon Sep 17 00:00:00 2001 +From: Phil Elwell <phil@raspberrypi.com> +Date: Tue, 7 Mar 2023 11:52:36 +0000 +Subject: [PATCH] hwmon: (aht10): Add DT compatible string + +Signed-off-by: Phil Elwell <phil@raspberrypi.com> +--- + drivers/hwmon/aht10.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +--- a/drivers/hwmon/aht10.c ++++ b/drivers/hwmon/aht10.c +@@ -332,9 +332,16 @@ static const struct i2c_device_id aht10_ + }; + MODULE_DEVICE_TABLE(i2c, aht10_id); + ++static const struct of_device_id aht10_of_id[] = { ++ { .compatible = "aosong,aht10", }, ++ { } ++}; ++MODULE_DEVICE_TABLE(of, aht10_of_id); ++ + static struct i2c_driver aht10_driver = { + .driver = { + .name = "aht10", ++ .of_match_table = aht10_of_id, + }, + .probe = aht10_probe, + .id_table = aht10_id, |