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