Linux EDAC development
 help / color / mirror / Atom feed
* EDAC, altera: constify irq_domain_ops
@ 2017-05-24 13:49 Borislav Petkov
  0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2017-05-24 13:49 UTC (permalink / raw)
  To: Tobias Klauser; +Cc: Thor Thayer, Mauro Carvalho Chehab, linux-edac

On Wed, May 24, 2017 at 03:35:05PM +0200, 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/edac/altera_edac.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
> index 7717b094fabb..122637530b15 100644
> --- a/drivers/edac/altera_edac.c
> +++ b/drivers/edac/altera_edac.c
> @@ -1839,7 +1839,7 @@ static int a10_eccmgr_irqdomain_map(struct irq_domain *d, unsigned int irq,
>  	return 0;
>  }
>  
> -static struct irq_domain_ops a10_eccmgr_ic_ops = {
> +static const struct irq_domain_ops a10_eccmgr_ic_ops = {
>  	.map = a10_eccmgr_irqdomain_map,
>  	.xlate = irq_domain_xlate_twocell,
>  };
> -- 

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread
* EDAC, altera: constify irq_domain_ops
@ 2017-05-24 13:35 Tobias Klauser
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Klauser @ 2017-05-24 13:35 UTC (permalink / raw)
  To: Thor Thayer; +Cc: Borislav Petkov, Mauro Carvalho Chehab, linux-edac

struct irq_domain_ops is not modified, so it can be made const.

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

diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
index 7717b094fabb..122637530b15 100644
--- a/drivers/edac/altera_edac.c
+++ b/drivers/edac/altera_edac.c
@@ -1839,7 +1839,7 @@ static int a10_eccmgr_irqdomain_map(struct irq_domain *d, unsigned int irq,
 	return 0;
 }
 
-static struct irq_domain_ops a10_eccmgr_ic_ops = {
+static const struct irq_domain_ops a10_eccmgr_ic_ops = {
 	.map = a10_eccmgr_irqdomain_map,
 	.xlate = irq_domain_xlate_twocell,
 };

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-24 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-24 13:49 EDAC, altera: constify irq_domain_ops Borislav Petkov
  -- strict thread matches above, loose matches on Subject: below --
2017-05-24 13:35 Tobias Klauser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox