Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755204Ab0GIK0H (ORCPT ); Fri, 9 Jul 2010 06:26:07 -0400 Received: from novprvlin0050.provo.novell.com ([137.65.248.33]:28262 "EHLO novprvlin0050.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752940Ab0GIK0F (ORCPT ); Fri, 9 Jul 2010 06:26:05 -0400 Message-Id: <4C3785D8020000230001CB03@novprvlin0050.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 8.0.2 Date: Fri, 09 Jul 2010 04:26:00 -0600 From: "Joey Lee" To: Cc: , , , , , Subject: Re: [PATCH] msi-laptop: make struct rfkill_ops const Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1384 Lines: 46 Hi Axel, 於 四,2010-07-08 於 10:08 +0800,Axel Lin 提到: > rfkill uses a const struct rfkill_ops pointer. > > Signed-off-by: Axel Lin > --- > 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 > }; > The patch is good to me, thank's a lot! Signed-off-by: Lee, Chun-Yi Joey Lee -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/