Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1649734 > unrolled thread

[PATCH] mfd: fsl-imx25-tsadc: constify irq_domain_ops

Started byTobias Klauser <tklauser@distanz.ch>
First post2017-05-24 18:10 +0200
Last post2017-05-30 10:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] mfd: fsl-imx25-tsadc: constify irq_domain_ops Tobias Klauser <tklauser@distanz.ch> - 2017-05-24 18:10 +0200
    Re: [PATCH] mfd: fsl-imx25-tsadc: constify irq_domain_ops Lee Jones <lee.jones@linaro.org> - 2017-05-30 10:10 +0200

#1649734 — [PATCH] mfd: fsl-imx25-tsadc: constify irq_domain_ops

FromTobias Klauser <tklauser@distanz.ch>
Date2017-05-24 18:10 +0200
Subject[PATCH] mfd: fsl-imx25-tsadc: constify irq_domain_ops
Message-ID<tKH1f-4vB-11@gated-at.bofh.it>
struct irq_domain_ops is not modified, so it can be made const.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 drivers/mfd/fsl-imx25-tsadc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/fsl-imx25-tsadc.c b/drivers/mfd/fsl-imx25-tsadc.c
index ac430a396a89..190e375dc57a 100644
--- a/drivers/mfd/fsl-imx25-tsadc.c
+++ b/drivers/mfd/fsl-imx25-tsadc.c
@@ -59,7 +59,7 @@ static int mx25_tsadc_domain_map(struct irq_domain *d, unsigned int irq,
 	return 0;
 }
 
-static struct irq_domain_ops mx25_tsadc_domain_ops = {
+static const struct irq_domain_ops mx25_tsadc_domain_ops = {
 	.map = mx25_tsadc_domain_map,
 	.xlate = irq_domain_xlate_onecell,
 };
-- 
2.13.0

[toc] | [next] | [standalone]


#1652925

FromLee Jones <lee.jones@linaro.org>
Date2017-05-30 10:10 +0200
Message-ID<tMKo2-4Kd-19@gated-at.bofh.it>
In reply to#1649734
On Wed, 24 May 2017, Tobias Klauser wrote:

> struct irq_domain_ops is not modified, so it can be made const.
> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> ---
>  drivers/mfd/fsl-imx25-tsadc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

> diff --git a/drivers/mfd/fsl-imx25-tsadc.c b/drivers/mfd/fsl-imx25-tsadc.c
> index ac430a396a89..190e375dc57a 100644
> --- a/drivers/mfd/fsl-imx25-tsadc.c
> +++ b/drivers/mfd/fsl-imx25-tsadc.c
> @@ -59,7 +59,7 @@ static int mx25_tsadc_domain_map(struct irq_domain *d, unsigned int irq,
>  	return 0;
>  }
>  
> -static struct irq_domain_ops mx25_tsadc_domain_ops = {
> +static const struct irq_domain_ops mx25_tsadc_domain_ops = {
>  	.map = mx25_tsadc_domain_map,
>  	.xlate = irq_domain_xlate_onecell,
>  };

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web