From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754831Ab1DTMwV (ORCPT ); Wed, 20 Apr 2011 08:52:21 -0400 Received: from zone0.gcu-squad.org ([212.85.147.21]:35531 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752292Ab1DTMwU (ORCPT ); Wed, 20 Apr 2011 08:52:20 -0400 Date: Wed, 20 Apr 2011 14:52:07 +0200 From: Jean Delvare To: Grant Likely Cc: LKML Subject: Re: [PATCH] gpiolib: export gpiochip_find Message-ID: <20110420145207.0e24e50d@endymion.delvare> In-Reply-To: <20110416093015.3befd780@endymion.delvare> References: <20110416093015.3befd780@endymion.delvare> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Grant, On Sat, 16 Apr 2011 09:30:15 +0200, Jean Delvare wrote: > Export function gpiochip_find so that modules can use it. Any problem with this patch? If not, the earlier it gets upstream, the happier I'll be. I think it should even be considered for stable kernel series. Thanks. > Signed-off-by: Jean Delvare > Cc: Grant Likely > --- > I need this to add support for SMBus multiplexing on my Asus Z8NA-D6 > board. > > drivers/gpio/gpiolib.c | 1 + > 1 file changed, 1 insertion(+) > > --- linux-2.6.39-rc3.orig/drivers/gpio/gpiolib.c 2011-03-30 10:57:19.000000000 +0200 > +++ linux-2.6.39-rc3/drivers/gpio/gpiolib.c 2011-04-16 09:00:25.000000000 +0200 > @@ -1165,6 +1165,7 @@ struct gpio_chip *gpiochip_find(void *da > > return chip; > } > +EXPORT_SYMBOL_GPL(gpiochip_find); > > /* These "optional" allocation calls help prevent drivers from stomping > * on each other, and help provide better diagnostics in debugfs. > -- Jean Delvare