lkml.org 
[lkml]   [2017]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 1/2] mfd: fsl-imx25: set irq handler and data in one go
From
Date
Am Dienstag, den 19.09.2017, 08:23 +0200 schrieb Martin Kaiser:
> Replace the two separate calls for setting the irq handler and data with
> a single irq_set_chained_handler_and_data() call.
>
> Signed-off-by: Martin Kaiser <martin@kaiser.cx>

Reviewed-by: Lucas Stach <l.stach@pengutronix.de>

> ---
> changes in v2: none
>
> drivers/mfd/fsl-imx25-tsadc.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/mfd/fsl-imx25-tsadc.c b/drivers/mfd/fsl-imx25-tsadc.c
> index b3767c3..14189ef 100644
> --- a/drivers/mfd/fsl-imx25-tsadc.c
> +++ b/drivers/mfd/fsl-imx25-tsadc.c
> @@ -84,8 +84,7 @@ static int mx25_tsadc_setup_irq(struct platform_device *pdev,
> return -ENOMEM;
> }
>
> - irq_set_chained_handler(irq, mx25_tsadc_irq_handler);
> - irq_set_handler_data(irq, tsadc);
> + irq_set_chained_handler_and_data(irq, mx25_tsadc_irq_handler, tsadc);
>
> return 0;
> }


\
 
 \ /
  Last update: 2017-09-19 10:18    [W:0.199 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site