brcm2708: rename target to bcm27xx
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-4.19 / 950-0277-mfd-Add-rpi_sense_core-of-compatible-string.patch
1 From 3e1371cc80a8153885cf87b06053ab2a2f1a1e66 Mon Sep 17 00:00:00 2001
2 From: Serge Schneider <serge@raspberrypi.org>
3 Date: Tue, 29 Jan 2019 12:05:49 +0000
4 Subject: [PATCH] mfd: Add rpi_sense_core of compatible string
5
6 ---
7 drivers/mfd/rpisense-core.c | 8 ++++++++
8 1 file changed, 8 insertions(+)
9
10 --- a/drivers/mfd/rpisense-core.c
11 +++ b/drivers/mfd/rpisense-core.c
12 @@ -138,6 +138,14 @@ static const struct i2c_device_id rpisen
13 };
14 MODULE_DEVICE_TABLE(i2c, rpisense_i2c_id);
15
16 +#ifdef CONFIG_OF
17 +static const struct of_device_id rpisense_core_id[] = {
18 + { .compatible = "rpi,rpi-sense" },
19 + { },
20 +};
21 +MODULE_DEVICE_TABLE(of, rpisense_core_id);
22 +#endif
23 +
24
25 static struct i2c_driver rpisense_driver = {
26 .driver = {