From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [PATCH] driver-core: constify data for class_find_device() Date: Tue, 05 Feb 2013 13:36:38 +0000 Message-ID: <20130205133638.9ED2F3E0E27@localhost> References: <4cba0646c55f8beb9e290492e499be209ca6f20d.1359746656.git.mirq-linux@rere.qmqm.pl> Content-Type: multipart/mixed; boundary="===============3106524905348920757==" Cc: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-zigbee-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Benny Halevy , osd-dev-yNzVSZO3znNg9hUCZPvPmw@public.gmane.org, Boaz Harrosh , linux-nfc-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, linux-pm-u79uwXL29TavoUN+ObpdWA@public.gmane.org To: Michał Mirosław , Greg Kroah-Hartman Return-path: In-Reply-To: <4cba0646c55f8beb9e290492e499be209ca6f20d.1359746656.git.mirq-linux-CoA6ZxLDdyEEUmgCuDUIdw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: netdev.vger.kernel.org --===============3106524905348920757== On Fri, 1 Feb 2013 20:40:17 +0100 (CET), Michał Mirosław wrote: > All in-kernel users of class_find_device() don't really need mutable > data for match callback. > > In two places (kernel/power/suspend_test.c, drivers/scsi/osd/osd_uld.c) > this patch changes match callbacks to use const search data. > > The const is propagated to rtc_class_open() and power_supply_get_by_name() > parameters. > > Note that there's a dev reference leak in suspend_test.c that's not > touched in this patch. > > Signed-off-by: Michał Mirosław > --- > > patch against https://github.com/torvalds/linux.git master Acked-by: Grant Likely for the GPIO and SPI bits. --===============3106524905348920757== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb --===============3106524905348920757== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/spi-devel-general --===============3106524905348920757==--