Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751771AbbK3Pzi (ORCPT ); Mon, 30 Nov 2015 10:55:38 -0500 Received: from mail-qg0-f46.google.com ([209.85.192.46]:34982 "EHLO mail-qg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbbK3Pzg (ORCPT ); Mon, 30 Nov 2015 10:55:36 -0500 MIME-Version: 1.0 In-Reply-To: References: <1445102604-11502-1-git-send-email-mcoquelin.stm32@gmail.com> <1445102604-11502-4-git-send-email-mcoquelin.stm32@gmail.com> <56261239.5030007@linaro.org> Date: Mon, 30 Nov 2015 16:55:35 +0100 Message-ID: Subject: Re: [PATCH v2 3/9] includes: dt-bindings: Add STM32F429 pinctrl DT bindings From: Maxime Coquelin To: Linus Walleij Cc: Sascha Hauer , Daniel Thompson , Mark Rutland , Rob Herring , "linux-gpio@vger.kernel.org" , Arnd Bergmann , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , =?UTF-8?Q?Andreas_F=C3=A4rber?= , "devicetree@vger.kernel.org" , Bruno Herrera Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1168 Lines: 32 2015-11-17 12:00 GMT+01:00 Linus Walleij : > On Fri, Nov 6, 2015 at 1:57 PM, Maxime Coquelin > wrote: > >> Thinking again at it, I persist to believe have the defines makes it >> easier to use. >> With auto-completion, it makes it faster and less error prone to >> select the right >> alternate function without parsing the datasheet. > > Auto-completion ... should we design our source code to > fit certain editors? No, you are right. But even without auto-completion, it is easier to have the values pre-computed. And Mediatek has the defines, so it is better to do the same for STM32 for consistency. >> But as these defines are not actually used on driver side, maybe I >> could just move >> them to the dts directory? > > No strong opinion there. include/dt-bindings is part of the bindings > documentation actually so I guess it goes there. Ok. Thanks, Maxime -- 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/