blob: 4ac56470ebbe1d194d08d068b296de8f364eb8cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From d80feb505001d17a4643c93ef342ec5d61e0122c Mon Sep 17 00:00:00 2001
From: Serge Schneider <serge@raspberrypi.org>
Date: Tue, 29 Jan 2019 12:05:49 +0000
Subject: [PATCH 322/725] 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 = {
|