2
0
forked from Ivasoft/openwrt

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>
This commit is contained in:
Aleksander Jan Bajkowski
2023-05-14 11:43:57 +02:00
committed by Christian Lamparter
parent 5e91b4507c
commit 7365e6b00a
12 changed files with 0 additions and 154 deletions

View File

@@ -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) {