Re: [PATCH 05/15] iio: gyro: fxas21002c: use irq_get_trigger_type()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 01, 2024 at 02:59:40PM +0100, Jonathan Cameron wrote:
> From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> 
> Use irq_get_trigger_type() to replace getting the irq data then the
> type in two steps.

...

> -	irq_trig = irqd_get_trigger_type(irq_get_irq_data(data->irq));
> +	irq_trig = irq_get_trigger_type(data->irq);

>  

No blank line?

>  	if (irq_trig == IRQF_TRIGGER_RISING) {
>  		ret = regmap_field_write(data->regmap_fields[F_IPOL], 1);

-- 
With Best Regards,
Andy Shevchenko






[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux