Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6721296ybp; Tue, 15 Oct 2019 20:36:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNlyB/HSiIZtAKKRz4hxjUSOYgyfAHvpzZrgIxyun233sCqOHDkB5s5Bj4iiOZnivsDv6D X-Received: by 2002:a17:906:29db:: with SMTP id y27mr38172845eje.185.1571196985920; Tue, 15 Oct 2019 20:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571196985; cv=none; d=google.com; s=arc-20160816; b=JxxeKSMb5tZMdi45j0PIrDcLj7jCyFOCV4dxdD0onJeYKoOUn19mZnSX3srdgNgyjr rkoaUSrfVfZXK39nybXF0+LrUtXR3gA1evYopARYi+9lA5FK+ROkI522YR5wGBtarXT6 S6GrFCf8ZtNJf7Ql69DUkdYP9RC+HtDKaAN/FtekT3Bn0iRuKq/4QYOn9LNclR1AEXIV RCK7tu61SJN29YVD8jt1VSp06bkkN76ci7Q0KyfYLU9HDqfwXpIAhbFd1j2omLl/RpAV QKZyolFeV5l8vmCWQkaar75hG2Tm6X4KEq2I+uyoj11Hi9qNsqQ0MBAV6B6PB+xV9IUR fSGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QPLDRSjG5bG7w6fYtZcYET8ZIubpaIOQrlz9PoCTU6k=; b=VRTfUSQ9F83VZeUo91i1tVU6MGYxI9pefMTacK+szYmeG7Zyil3cRuNoeDQgEC1FyX 6CGfJhIbt1ZKY6p54HhKGEaGYA3odhcBgPugao5zwbZJDM3SMOUWfYbrT+TSmeneX9SX KDogEIXgMafdE8Jj5t8mtivaWvZ56zPspaztvYM94aippULdz432+APeYaBP+RoO/U3h e+NVG5YnkJUToI0sfgoNB/RuxvTr76aymHaLx1OPfgPZiux9PR8XG3XgjDFx8VLFUb1s gpOEDo2EB1vQBdPPy1QgNIYQs4bo2uta/05s2w7jwt+XHkSdIrpH2nnYRP+C+uUN/V0u Ws0w== 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 g30si16812936eda.2.2019.10.15.20.36.02; Tue, 15 Oct 2019 20:36:25 -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 S1732956AbfJOUKy (ORCPT + 99 others); Tue, 15 Oct 2019 16:10:54 -0400 Received: from gloria.sntech.de ([185.11.138.130]:39266 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726717AbfJOUKy (ORCPT ); Tue, 15 Oct 2019 16:10:54 -0400 Received: from remote.shanghaihotelholland.com ([46.44.148.63] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iKT9c-00080l-5K; Tue, 15 Oct 2019 22:10:48 +0200 From: Heiko Stuebner To: Johan Jonker Cc: robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] include: dt-bindings: rockchip: remove RK_FUNC defines Date: Tue, 15 Oct 2019 22:10:42 +0200 Message-ID: <2236841.lnJlJmhppS@phil> In-Reply-To: <20191015191000.2890-2-jbx6244@gmail.com> References: <20191015191000.2890-1-jbx6244@gmail.com> <20191015191000.2890-2-jbx6244@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johan, Am Dienstag, 15. Oktober 2019, 21:10:00 CEST schrieb Johan Jonker: > The defines RK_FUNC_1, RK_FUNC_2, RK_FUNC_3 and RK_FUNC_4 > are no longer used, so remove them to prevent > that someone start using them again. That won't work. Devicetree provides a slightly flexible promise of backwards compatibilty. So a new kernel should still work old devicetrees. (not exactly sure if this means dt-binaries and sources or only binaries) So while I think RK_FUNC_0-n should not be used anymore, we should probably just mark them as "deprecated" in a first step. Heiko > Signed-off-by: Johan Jonker > --- > include/dt-bindings/pinctrl/rockchip.h | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/include/dt-bindings/pinctrl/rockchip.h b/include/dt-bindings/pinctrl/rockchip.h > index dc5c1c73d..2798b6c03 100644 > --- a/include/dt-bindings/pinctrl/rockchip.h > +++ b/include/dt-bindings/pinctrl/rockchip.h > @@ -50,9 +50,5 @@ > #define RK_PD7 31 > > #define RK_FUNC_GPIO 0 > -#define RK_FUNC_1 1 > -#define RK_FUNC_2 2 > -#define RK_FUNC_3 3 > -#define RK_FUNC_4 4 > > #endif >