kernel: update 4.4 to 4.4.83
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.9 / 0083-mfd-led3.patch
1 From patchwork Fri Feb 24 18:47:21 2017
2 Content-Type: text/plain; charset="utf-8"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 Subject: [v4,4/4] mfd: mt6397: Add MT6323 LED support into MT6397 driver
6 From: sean.wang@mediatek.com
7 X-Patchwork-Id: 9591021
8 Message-Id: <1487962041-6548-5-git-send-email-sean.wang@mediatek.com>
9 To: <rpurdie@rpsys.net>, <jacek.anaszewski@gmail.com>, <lee.jones@linaro.org>,
10 <matthias.bgg@gmail.com>, <pavel@ucw.cz>, <robh+dt@kernel.org>,
11 <mark.rutland@arm.com>
12 Cc: devicetree@vger.kernel.org, keyhaede@gmail.com,
13 Sean Wang <sean.wang@mediatek.com>, linux-kernel@vger.kernel.org,
14 linux-mediatek@lists.infradead.org, linux-leds@vger.kernel.org,
15 linux-arm-kernel@lists.infradead.org
16 Date: Sat, 25 Feb 2017 02:47:21 +0800
17
18 From: Sean Wang <sean.wang@mediatek.com>
19
20 Add compatible string as "mt6323-led" that will make
21 the OF core spawn child devices for the LED subnode
22 of that MT6323 MFD device.
23
24 Signed-off-by: Sean Wang <sean.wang@mediatek.com>
25 ---
26 drivers/mfd/mt6397-core.c | 4 ++++
27 1 file changed, 4 insertions(+)
28
29 --- a/drivers/mfd/mt6397-core.c
30 +++ b/drivers/mfd/mt6397-core.c
31 @@ -48,6 +48,10 @@ static const struct mfd_cell mt6323_devs
32 .name = "mt6323-regulator",
33 .of_compatible = "mediatek,mt6323-regulator"
34 },
35 + {
36 + .name = "mt6323-led",
37 + .of_compatible = "mediatek,mt6323-led"
38 + },
39 };
40
41 static const struct mfd_cell mt6397_devs[] = {