summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/pinctrl
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2023-05-14 11:43:57 +0200
committerChristian Lamparter <chunkeey@gmail.com>2023-05-20 15:19:14 +0200
commit7365e6b00a7ab823467b7d92d4f3f0bdbe271f35 (patch)
treef3a7cc668c0e4b4a9c3c46a7aac21117a7ed2fc5 /target/linux/ramips/files/drivers/pinctrl
parent5e91b4507c0010970482099464b44a5404835caa (diff)
downloadopenwrt-7365e6b00a7ab823467b7d92d4f3f0bdbe271f35.tar.gz
openwrt-7365e6b00a7ab823467b7d92d4f3f0bdbe271f35.tar.bz2
openwrt-7365e6b00a7ab823467b7d92d4f3f0bdbe271f35.zip
kernel: remove obsolete kernel version switches
This removes unneeded kernel version switches from the targets after kernel 5.10 has been dropped. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Diffstat (limited to 'target/linux/ramips/files/drivers/pinctrl')
-rw-r--r--target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c b/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c
index 4e75c9bf07..4900c5a0c0 100644
--- a/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c
+++ b/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c
@@ -386,11 +386,6 @@ static const struct pinconf_ops aw9523_pinconf_ops = {
.is_generic = true,
};
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 5, 0)
-#define GPIO_LINE_DIRECTION_IN 1
-#define GPIO_LINE_DIRECTION_OUT 0
-#endif
-
/*
* aw9523_get_pin_direction - Get pin direction
* @regmap: Regmap structure
@@ -437,11 +432,6 @@ static int aw9523_get_port_state(struct regmap *regmap, u8 pin,
return regmap_read(regmap, reg, state);
}
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 5, 0)
-#undef GPIO_LINE_DIRECTION_IN
-#undef GPIO_LINE_DIRECTION_OUT
-#endif
-
static int aw9523_gpio_irq_type(struct irq_data *d, unsigned int type)
{
switch (type) {