.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) {
return 0;
}
+static void aw9523_remove_void(struct i2c_client *client)
+{
+ aw9523_remove(client);
+}
+
static const struct i2c_device_id aw9523_i2c_id_table[] = {
{ "aw9523_i2c", 0 },
{ }
.of_match_table = of_aw9523_i2c_match,
},
.probe = aw9523_probe,
- .remove = aw9523_remove,
+ .remove = aw9523_remove_void,
.id_table = aw9523_i2c_id_table,
};
module_i2c_driver(aw9523_driver);