brcm2708: bcm2711: remove custom config file
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0320-mfd-Add-rpi_sense_core-of-compatible-string.patch
1 From a211e48e8dfe5d53f09f56d7c02519c3b18ec3bf 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 320/773] 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 = {