Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752321AbbERQx0 (ORCPT ); Mon, 18 May 2015 12:53:26 -0400 Received: from mail-ie0-f182.google.com ([209.85.223.182]:36231 "EHLO mail-ie0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201AbbERQxV (ORCPT ); Mon, 18 May 2015 12:53:21 -0400 Date: Mon, 18 May 2015 09:53:17 -0700 From: Dmitry Torokhov To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH 3/3] max7359_keypad: implement DT bindings Message-ID: <20150518165317.GC19708@dtor-ws> References: <20150517165502.GA781@fifteen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150517165502.GA781@fifteen> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 25 On Sun, May 17, 2015 at 07:55:02PM +0300, Evgeniy Dushistov wrote: > On Fri, May 15, 2015 at 11:00:02PM +0200, Dmitry Torokhov wrote: > > On Thu, May 14, 2015 at 05:38:03AM +0300, Evgeniy Dushistov wrote: > > > + maxim,debounce_reg = /bits/ 8 <0x5F>; > > > + maxim,ports_reg = /bits/ 8 <0xFF>; > > > > Specifying exact size for properties is quite uncommon; I think the > > usual recommendation is is to use the "standard" u32 and validate the > > range in parser function. > > > > Using of u8 has advantages, it is possible on compilation stage > (dts->dtb) check that you enter right value, but > because of DT validation tools are not part of mainline, > I replace u8 with u32 as you suggest, see patch bellow. If you get DT folks OK on using /bits/ I'm fine with keeping it. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/