You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
717 B
Diff
27 lines
717 B
Diff
From 3e1371cc80a8153885cf87b06053ab2a2f1a1e66 Mon Sep 17 00:00:00 2001
|
|
From: Serge Schneider <serge@raspberrypi.org>
|
|
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 = {
|