b/drivers/input/touchscree
@@ -1453,7 +1453,7 @@ static int mxt_check_retrigen(struct mxt_data *data)
int error;
int val;
- if (data->pdata->irqflags & IRQF_TRIGGER_LOW)
+ if (irq_get_trigger_type(data->irq) & IRQF_TRIGGER_LOW)
return 0;
if (data->T18_address) {
@@ -3155,9 +3155,6 @@ static struct mxt_platform_data *mxt_parse_dt(struct
i2c_c
pdata->gpio_reset = of_get_named_gpio_flags(dev->of_node,
"atmel,reset-gpio", 0, NULL);
- /* Default to this. Properties can be added to configure it later */
- pdata->irqflags = IRQF_TRIGGER_FALLING;
-
of_property_read_string(dev->of_node, "atmel,cfg_name",
&pdata->cfg_name);