From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Subject: Re: [PATCH 4/6 V2] of/mtd/nand: add generic bindings and helpers Date: Tue, 7 Feb 2012 10:45:30 +0100 Message-ID: <201202071045.30128.sr@denx.de> References: <1327727444-23908-1-git-send-email-plagnioj@jcrosoft.com> <201202061720.24996.sr@denx.de> <20120207041606.GD15647@game.jcrosoft.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120207041606.GD15647-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@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-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Cc: linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org On Tuesday 07 February 2012 05:16:06 Jean-Christophe PLAGNIOL-VILLARD wrote: > > > - nand-on-flash-bbt: boolean to enable on flash bbt option if not > > > present false > > > > Why not use an "empty" type (without argument) for nand-on-flash-bbt > > then? > > I want to be able to disable it Then just don't add this property. > I send a patch to add a helper to manage boolean > > this will allow to disable a boolean > > is-ok; => true > is-ok = <1>; => true > is-ok = <0>; => false Okay, fine with me. Thanks, Stefan