summaryrefslogtreecommitdiffstats
path: root/sys-kernel/boest-v5.0.15/raspberrypi/0159-mfd-Add-rpi_sense_core-of-compatible-string.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/boest-v5.0.15/raspberrypi/0159-mfd-Add-rpi_sense_core-of-compatible-string.patch')
-rw-r--r--sys-kernel/boest-v5.0.15/raspberrypi/0159-mfd-Add-rpi_sense_core-of-compatible-string.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-kernel/boest-v5.0.15/raspberrypi/0159-mfd-Add-rpi_sense_core-of-compatible-string.patch b/sys-kernel/boest-v5.0.15/raspberrypi/0159-mfd-Add-rpi_sense_core-of-compatible-string.patch
new file mode 100644
index 00000000..442e83e9
--- /dev/null
+++ b/sys-kernel/boest-v5.0.15/raspberrypi/0159-mfd-Add-rpi_sense_core-of-compatible-string.patch
@@ -0,0 +1,28 @@
+From 387b4f4dff94206097f54d9004502a8aa324cf19 Mon Sep 17 00:00:00 2001
+From: Serge Schneider <serge@raspberrypi.org>
+Date: Tue, 29 Jan 2019 12:05:49 +0000
+Subject: [PATCH 159/194] mfd: Add rpi_sense_core of compatible string
+
+---
+ drivers/mfd/rpisense-core.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/drivers/mfd/rpisense-core.c b/drivers/mfd/rpisense-core.c
+index 715792b093c3..c817b5fa1ec5 100644
+--- a/drivers/mfd/rpisense-core.c
++++ b/drivers/mfd/rpisense-core.c
+@@ -138,6 +138,14 @@ static const struct i2c_device_id rpisense_i2c_id[] = {
+ };
+ 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 = {