realtek: refresh patches in 5.15
[openwrt/staging/jow.git] / target / linux / realtek / patches-5.15 / 303-gpio-update-dependencies-for-gpio-realtek-otto.patch
1 From 9bac1c20b8f39f2e0e342b087add5093b94feaed Mon Sep 17 00:00:00 2001
2 From: INAGAKI Hiroshi <musashino.open@gmail.com>
3 Date: Wed, 5 May 2021 22:05:39 +0900
4 Subject: realtek: backport gpio-realtek-otto driver from 5.13 to 5.10
5
6 This patch backports "gpio-realtek-otto" driver to Kernel 5.10.
7 "MACH_REALTEK_RTL" is used as a platform name in upstream, but "RTL838X"
8 is used in OpenWrt, so update the dependency by the additional patch.
9
10 Submitted-by: INAGAKI Hiroshi <musashino.open@gmail.com>
11 ---
12 drivers/gpio/Kconfig | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14 --- a/drivers/gpio/Kconfig
15 +++ b/drivers/gpio/Kconfig
16 @@ -503,8 +503,8 @@ config GPIO_RDA
17
18 config GPIO_REALTEK_OTTO
19 tristate "Realtek Otto GPIO support"
20 - depends on MACH_REALTEK_RTL
21 - default MACH_REALTEK_RTL
22 + depends on RTL83XX
23 + default RTL838X
24 select GPIO_GENERIC
25 select GPIOLIB_IRQCHIP
26 help