From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Ujfalusi Subject: Re: [PATCH v3 4/4] leds: leds-pwm: Add device tree bindings Date: Wed, 12 Dec 2012 10:00:28 +0100 Message-ID: <50C847AC.3030100@ti.com> References: <1355133637-2784-1-git-send-email-peter.ujfalusi@ti.com> <1355133637-2784-5-git-send-email-peter.ujfalusi@ti.com> <20121211072545.GD8294@avionic-0098.adnet.avionic-design.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20121211072545.GD8294-RM9K5IK7kjIyiCvfTdI0JKcOhU4Rzj621B7CTYaBSLdn68oJJulU0Q@public.gmane.org> 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: Thierry Reding Cc: linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Bryan Wu , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Richard Purdie , linux-leds-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On 12/11/2012 08:25 AM, Thierry Reding wrote: >> +static const struct of_device_id of_pwm_leds_match[] =3D { >> + { .compatible =3D "pwm-leds", }, >> + {}, >> +}; > = > Doesn't this cause a compiler warning for !OF builds? This is not causing any compiler warnings. -- = P=E9ter From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752317Ab2LLJAt (ORCPT ); Wed, 12 Dec 2012 04:00:49 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:60833 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750927Ab2LLJAs (ORCPT ); Wed, 12 Dec 2012 04:00:48 -0500 Message-ID: <50C847AC.3030100@ti.com> Date: Wed, 12 Dec 2012 10:00:28 +0100 From: Peter Ujfalusi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Thierry Reding CC: Bryan Wu , Richard Purdie , Grant Likely , , , , Subject: Re: [PATCH v3 4/4] leds: leds-pwm: Add device tree bindings References: <1355133637-2784-1-git-send-email-peter.ujfalusi@ti.com> <1355133637-2784-5-git-send-email-peter.ujfalusi@ti.com> <20121211072545.GD8294@avionic-0098.adnet.avionic-design.de> In-Reply-To: <20121211072545.GD8294@avionic-0098.adnet.avionic-design.de> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/11/2012 08:25 AM, Thierry Reding wrote: >> +static const struct of_device_id of_pwm_leds_match[] = { >> + { .compatible = "pwm-leds", }, >> + {}, >> +}; > > Doesn't this cause a compiler warning for !OF builds? This is not causing any compiler warnings. -- Péter