From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylwester Nawrocki Subject: Re: [PATCH 2/2] leds: Convert S3C24XX LED driver to gpiolib API Date: Mon, 02 Jul 2012 22:18:44 +0200 Message-ID: <4FF20224.4020203@gmail.com> References: <1341059426-22693-1-git-send-email-sylvester.nawrocki@gmail.com> <1341059426-22693-2-git-send-email-sylvester.nawrocki@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bk0-f46.google.com ([209.85.214.46]:43828 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932693Ab2GBUSs (ORCPT ); Mon, 2 Jul 2012 16:18:48 -0400 In-Reply-To: Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: Bryan Wu Cc: rpurdie@rpsys.net, linux-leds@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Ben Dooks Hi, On 07/02/2012 05:35 AM, Bryan Wu wrote: > On Sat, Jun 30, 2012 at 8:30 PM, Sylwester Nawrocki > wrote: >> The s3c2410_gpio* calls are obsolete and have been scheduled for >> removal since several kernel releases. Remove them and use common >> gpiolib API instead. >> This patch also adds gpio_request/gpio_free call for API corectness. >> >> It is a prerequisite for removal of the S3C24XX SoC specific >> arch/arm/plat-samsung/include/gpio-fns.h header. >> >> Tested on Micro2440-SDK. >> > > Overall, these 2 patches are good. I'm just curious why not we just > use generic led-gpio driver to replace this one. Thank you for the suggestion, I wasn't really aware of generic leds-gpio driver... This could be nice optimization. However my intention was to just clean up the GPIO bits, with minimal changes to other subsystems. I could check and see how it could be done perhaps as a next step ? There is a few (old) boards that use this driver and converting them would delay the GPIO patches even further... Also generic led-gpio has some limitations, e.g. I couldn't see it supports tri-stating a GPIO when a LED is off. Probably this feature could be added. -- Regards, Sylwester