X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0277-mfd-Add-rpi_sense_core-of-compatible-string.patch;fp=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0277-mfd-Add-rpi_sense_core-of-compatible-string.patch;h=0647b0532a75b87a8a79dc6a5c38f3c340194c98;hb=84d555aa74434392b682fd9eb0fa701c89a046d6;hp=0000000000000000000000000000000000000000;hpb=953973c2991e8640549a55df7a0574a1abac8644;p=openwrt%2Fstaging%2Fchunkeey.git diff --git a/target/linux/brcm2708/patches-4.19/950-0277-mfd-Add-rpi_sense_core-of-compatible-string.patch b/target/linux/brcm2708/patches-4.19/950-0277-mfd-Add-rpi_sense_core-of-compatible-string.patch new file mode 100644 index 0000000000..0647b0532a --- /dev/null +++ b/target/linux/brcm2708/patches-4.19/950-0277-mfd-Add-rpi_sense_core-of-compatible-string.patch @@ -0,0 +1,26 @@ +From 3e1371cc80a8153885cf87b06053ab2a2f1a1e66 Mon Sep 17 00:00:00 2001 +From: Serge Schneider +Date: Tue, 29 Jan 2019 12:05:49 +0000 +Subject: [PATCH] mfd: Add rpi_sense_core of compatible string + +--- + drivers/mfd/rpisense-core.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +--- a/drivers/mfd/rpisense-core.c ++++ b/drivers/mfd/rpisense-core.c +@@ -138,6 +138,14 @@ static const struct i2c_device_id rpisen + }; + MODULE_DEVICE_TABLE(i2c, rpisense_i2c_id); + ++#ifdef CONFIG_OF ++static const struct of_device_id rpisense_core_id[] = { ++ { .compatible = "rpi,rpi-sense" }, ++ { }, ++}; ++MODULE_DEVICE_TABLE(of, rpisense_core_id); ++#endif ++ + + static struct i2c_driver rpisense_driver = { + .driver = {