From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] leds: Add device tree binding for pca9633 Date: Thu, 27 Jun 2013 00:21:52 -0700 Message-ID: <20130627072151.GD5523@atomide.com> References: <20130626141705.GY5523@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Bryan Wu Cc: "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" , Richard Purdie , Linux LED Subsystem List-Id: devicetree@vger.kernel.org * Bryan Wu [130626 16:53]: > On Wed, Jun 26, 2013 at 7:17 AM, Tony Lindgren wrote: > > @@ -22,6 +22,7 @@ > > #include > > #include > > #include > > +#include > > #include > > > > /* LED select registers determine the source that drives LED outputs */ > > @@ -93,6 +94,61 @@ static void pca9633_led_set(struct led_classdev *led_cdev, > > schedule_work(&pca9633->work); > > } > > > > +#ifdef CONFIG_OF > > Shall we use "#if IS_ENABLED(CONFIG_OF)", as Grant pointed out recently. Thanks will do, I'll also add the push-pull vs totem pole binding as that can be quite crucial for some hardware configurations. Regards, Tony