Re: [PATCH v3 2/3] Staging: iio: adt7316: Move interrupt related code

From: Dan Carpenter
Date: Tue Dec 11 2018 - 04:36:41 EST


On Sat, Dec 08, 2018 at 08:46:37PM +0530, Shreeya Patel wrote:
> - return irq_type;
> + ret = devm_request_threaded_irq(&indio_dev->dev, chip->bus.irq,
> + NULL, adt7316_event_handler,
> + irq_type | IRQF_ONESHOT,
> + indio_dev->name, indio_dev);
> + if (ret)
> + return ret;
> +
> + if (irq_type & IRQF_TRIGGER_HIGH)
> + chip->config1 |= ADT7316_INT_POLARITY;
> +
> + return ret;

return 0; here.

> }
>
> /*

regards,
dan carpenter