Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp4189909ybh; Tue, 17 Mar 2020 14:03:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu/Ayj5UG5gkPUo1x+PR+O+JSQ51RbX5dpD1++L7lZWKMpOxE/LjjnbAyMatF4/xYWeWbXD X-Received: by 2002:a05:6830:616:: with SMTP id w22mr1009154oti.215.1584479018731; Tue, 17 Mar 2020 14:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584479018; cv=none; d=google.com; s=arc-20160816; b=tB98S8ZrJojJ4BvPmLI/JUU1DsHzWlRBT+UtFSjqeLzXMoTZmi4Px5B0CcMyTbf+o2 ci+AYoKPuUaCERm/k7IqBhWJeJKtwXMaXhLYScMjbffVzlECC+90g+cDF5RhGjyVAgtp Z2WeshqWVPh3YKIF1Xjt8rDaEEBni8Co0JeFiJt/fvZP/96K86cvCT+4nBxeKe53zSLN ynZzC/w9XJ6sFqX/JcEI5bn9K8nHoFxujMK/pGP1T85AJiySmVXO2q9tlde+x2pwpWG6 g0KEiJUHttqHkTBRTcYiFvX1Xst+GF1JmM2G4m3a5xLRWmuEbglBtXHJGFa+FPnGigw9 K/5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=VeAHv1Hp+boT+ICggf029a0q01HLDy5MKOkH0V5mYTA=; b=DRWkuqSXEwA/SEBkJtArL+z6pVx+ZFjyIFLkISHSmeqHiTCwy1+5valI+MYD7Z5QXH d4DejTAX7F4UDSO42xZRnQzw6k9DtvteAGOj2lRQ1WkiJBFu7nwNYuZS6EXMKn7tq+3I uOw2MdcHVqI5pScptImFyLWR70eLqbC3+bK5bqjgiy9donYpVlFcgxEknPzVkQa3fmjO 4t0hAGqsisA04uwxFfmYQkv2cuqfsY7dFrAdCO9Ljwcoc61gHf6keQOXQDKyOiyJBGQd Hv4MwXi/QbKMr67LKRteoeM7ArN8v1tA/63cKLmKJkIXMPkByEa2bS7EotOhHRN4G4KC TX0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si2331309otp.95.2020.03.17.14.03.24; Tue, 17 Mar 2020 14:03:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726823AbgCQVB1 (ORCPT + 99 others); Tue, 17 Mar 2020 17:01:27 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:50937 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbgCQVB0 (ORCPT ); Tue, 17 Mar 2020 17:01:26 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEJKW-00039f-Bg; Tue, 17 Mar 2020 22:00:52 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jEJKM-0003eU-V8; Tue, 17 Mar 2020 22:00:42 +0100 Date: Tue, 17 Mar 2020 22:00:42 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Thierry Reding Cc: Oleksandr Suvorov , devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, Paul Barker , Laurent Pinchart , Marcel Ziswiler , Igor Opaniuk , Philippe Schenker , Alexandre Belloni , Chen-Yu Tsai , Claudiu Beznea , Fabio Estevam , Florian Fainelli , Heiko Stuebner , Kevin Hilman , Ludovic Desroches , Maxime Ripard , NXP Linux Team , Nicolas Ferre , Palmer Dabbelt , Paul Cercueil , Paul Walmsley , Pengutronix Kernel Team , Ray Jui , Sascha Hauer , Scott Branden , Shawn Guo , Tony Prisk , bcm-kernel-feedback-list@broadcom.com, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [RFC PATCH 1/7] pwm: rename the PWM_POLARITY_INVERSED enum Message-ID: <20200317210042.ryrof3amr7fxp4w5@pengutronix.de> References: <20200317123231.2843297-1-oleksandr.suvorov@toradex.com> <20200317123231.2843297-2-oleksandr.suvorov@toradex.com> <20200317174043.GA1464607@ulmo> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200317174043.GA1464607@ulmo> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Mar 17, 2020 at 06:40:43PM +0100, Thierry Reding wrote: > On Tue, Mar 17, 2020 at 02:32:25PM +0200, Oleksandr Suvorov wrote: > > The polarity enum definition PWM_POLARITY_INVERSED is misspelled. > > Rename it to PWM_POLARITY_INVERTED. > > It isn't misspelled. "inversed" is a synonym for "inverted". Both > spellings are correct. Some time ago I stumbled about "inversed", too. My spell checker doesn't know it and I checked some dictionaries and none of them knew that word: https://www.lexico.com/search?utf8=%E2%9C%93&filter=dictionary&dictionary=en&query=inversed https://de.pons.com/%C3%BCbersetzung/englisch-deutsch/inversed https://dictionary.cambridge.org/spellcheck/english-german/?q=inversed https://en.wiktionary.org/wiki/inverse#Verb mentions "inverse" as a verb having "inversed" as past participle. Having said this I think (independent of the question if "inversed" exists) using two similar terms for the same thing just results in confusion. I hit that in the past already and I like it being addressed. > And as you noted in the cover letter, there's a conflict between the > macro defined in dt-bindings/pwm/pwm.txt. If they end up being included > in the wrong order you'll get a compile error. There are also other symbols that exist twice (GPIO_ACTIVE_HIGH was the first to come to my mind). I'm not aware of any problems related to these. What am I missing? > The enum was named this way on purpose to make it separate from the > definition for the DT bindings. Then please let's make it different by picking a different prefix or something like that. > Note that DT bindings are an ABI and can > never change, whereas the enum pwm_polarity is part of a Linux internal > API and doesn't have the same restrictions as an ABI. I thought only binary device trees (dtb) are supposed to be ABI. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |