[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1278554935.7162.12.camel@mola>
Date: Thu, 08 Jul 2010 10:08:55 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: Lennart Poettering <mzxreary@...inter.de>,
Matthew Garrett <mjg@...hat.com>,
"Lee, Chun-Yi" <jlee@...ell.com>,
Greg Kroah-Hartman <gregkh@...e.de>,
Richard Purdie <rpurdie@...ux.intel.com>,
platform-driver-x86@...r.kernel.org
Subject: [PATCH] msi-laptop: make struct rfkill_ops const
rfkill uses a const struct rfkill_ops pointer.
Signed-off-by: Axel Lin <axel.lin@...il.com>
---
drivers/platform/x86/msi-laptop.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c
index afd762b..05634f8 100644
--- a/drivers/platform/x86/msi-laptop.c
+++ b/drivers/platform/x86/msi-laptop.c
@@ -562,15 +562,15 @@ static int rfkill_threeg_set(void *data, bool blocked)
return 0;
}
-static struct rfkill_ops rfkill_bluetooth_ops = {
+static const struct rfkill_ops rfkill_bluetooth_ops = {
.set_block = rfkill_bluetooth_set
};
-static struct rfkill_ops rfkill_wlan_ops = {
+static const struct rfkill_ops rfkill_wlan_ops = {
.set_block = rfkill_wlan_set
};
-static struct rfkill_ops rfkill_threeg_ops = {
+static const struct rfkill_ops rfkill_threeg_ops = {
.set_block = rfkill_threeg_set
};
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists