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


Groups > linux.kernel > #1709684 > unrolled thread

[PATCH] platform/x86: intel_mid_powerbtn: make mid_pb_ddata

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-11 16:30 +0200
Last post2017-08-11 16:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] platform/x86: intel_mid_powerbtn: make mid_pb_ddata Bhumika Goyal <bhumirks@gmail.com> - 2017-08-11 16:30 +0200

#1709684 — [PATCH] platform/x86: intel_mid_powerbtn: make mid_pb_ddata

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-11 16:30 +0200
Subject[PATCH] platform/x86: intel_mid_powerbtn: make mid_pb_ddata
Message-ID<udj6P-4Eb-53@gated-at.bofh.it>
Make these const as they are only used during a copy operation.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/platform/x86/intel_mid_powerbtn.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/intel_mid_powerbtn.c b/drivers/platform/x86/intel_mid_powerbtn.c
index 871cfa6..2916672 100644
--- a/drivers/platform/x86/intel_mid_powerbtn.c
+++ b/drivers/platform/x86/intel_mid_powerbtn.c
@@ -108,13 +108,13 @@ static irqreturn_t mid_pb_isr(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static struct mid_pb_ddata mfld_ddata = {
+static const struct mid_pb_ddata mfld_ddata = {
 	.mirqlvl1_addr	= INTEL_MSIC_IRQLVL1MSK,
 	.pbstat_addr	= INTEL_MSIC_PBSTATUS,
 	.pbstat_mask	= MSIC_PB_LEVEL,
 };
 
-static struct mid_pb_ddata mrfld_ddata = {
+static const struct mid_pb_ddata mrfld_ddata = {
 	.mirqlvl1_addr	= BCOVE_IRQLVL1MSK,
 	.pbstat_addr	= BCOVE_PBSTATUS,
 	.pbstat_mask	= BCOVE_PB_LEVEL,
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web