Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp758077rwb; Thu, 12 Jan 2023 11:56:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXud/J6WeY+oo//YeIikIOeTCWovFWlr/65/3/51nfzstyYiocg66XVnA8zCl3QBVwGb+zhO X-Received: by 2002:a17:90a:708e:b0:229:1fb3:944c with SMTP id g14-20020a17090a708e00b002291fb3944cmr362818pjk.30.1673553413586; Thu, 12 Jan 2023 11:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673553413; cv=none; d=google.com; s=arc-20160816; b=D6adBQ4rqTHqjrjFbcC7wX3tcT6IUpFhRRQ1ymK65B5QwbtR7OSxkEtDGUNCFVFNPl KATqevtegzRVJH4dJzvPBGCHCvK77knhcMIs/u2AuFbpA7Wem2pyq/3Qu0gx0lMEhlD3 U/BTE68ZfuIWzJ+X70Qr5Yb0QJz4baSSMxH5d87Rug0T9Cw5JAgvU00LMrdXuLga7Z1s YGoumBQBUH0pnLBw0kZMuawJsi59zQ1Dj54mPLu/ZhF2U2ur9LLVyT9EOz5xNPZSWXuW 6ToQBjI/gZsgOo7/xTupd3VkIZ/QSSRRGL9FL8dazUrqxlU2Ds6IHwwlbAPneN/EdB4d 98dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=p0xoYExSd4f0tUHRmlwzfl3AdvP/fDSmD0YcTZtsVIg=; b=CTLyBX23EX0ZdnodLJ/VNx/93o9JRESmQWhj+xaftKJo5lJ4ngfhLsVR/Xs5ETbuwi Zb2VYlfNOy2+CnAXVCzwTth7gcE0dwioGvKcEiwVtkxkA0ivP+v57ptkdq9c4HMr8Nj3 A3wjBh4XBdgX0uD4AwyDRtkG5pXXRdG3nfq6lulUCGsZsFpJRCcEpzxvUukf7jZye3Uc Hpb37fAec/Izg5HZC61Kg4MRxok8jBry9MWYcEHw4r0Za3dHz28+6wK65ppT9/TNPK9i EEth0mCOJARVifG1K+TVKL8+ZjoGhIuOGCsrtGILzfUDdHsRwqBdglJbStAznE3b6Gum vKNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tkos.co.il header.s=default header.b=TUl8PMGU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tkos.co.il Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oe9-20020a17090b394900b00225af6fa4ccsi7927365pjb.1.2023.01.12.11.56.47; Thu, 12 Jan 2023 11:56:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tkos.co.il header.s=default header.b=TUl8PMGU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tkos.co.il Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232842AbjALTsT (ORCPT + 50 others); Thu, 12 Jan 2023 14:48:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232870AbjALTr1 (ORCPT ); Thu, 12 Jan 2023 14:47:27 -0500 X-Greylist: delayed 301 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 12 Jan 2023 11:43:26 PST Received: from mail.tkos.co.il (golan.tkos.co.il [84.110.109.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18FD6F1F; Thu, 12 Jan 2023 11:43:26 -0800 (PST) Received: from tarshish (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.tkos.co.il (Postfix) with ESMTPS id 7AC07440319; Thu, 12 Jan 2023 21:27:39 +0200 (IST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tkos.co.il; s=default; t=1673551659; bh=vS60k0tj2u3HznO7yKB7DChKrzNTg3akDjVjvbv3vuk=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=TUl8PMGUNUxB8+l+k2S3hmtX10rrsh5tMMfu/21WnMrXVGKnJYmVODXOJ6rQN6aCV GknJ0ELuEmIa1HdsS5aG+eTtC21AG6OHPdV2Zf83W0Ltg4z4uJoNjcGeDDraAPihAu PjPeAvvq7hDGLLMhxg+iPokOd2S0JQw0u4hnaxxQrlfYTzHPeIIMisrKBcwROEyGmi S8mlRrpHeJ0fiUW0dx09hBe7qvdreGg2UuPsqK7l47BoAb0U+oRGkdhpze+Nt4/tnX YYuQQZE4faHIlU9nZ13LRcF/XRV3HHyT/Isn4GnXB10INMO9MWIJc8xeJv1dvCIHFe 7ub0pap/FaHGA== References: <20230112184823.80349-1-andriy.shevchenko@linux.intel.com> <20230112184823.80349-2-andriy.shevchenko@linux.intel.com> User-agent: mu4e 1.8.10; emacs 28.2 From: Baruch Siach To: Andy Shevchenko Cc: Linus Walleij , Jianlong Huang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v1 2/2] pinctrl: digicolor: Use proper headers and drop OF dependency Date: Thu, 12 Jan 2023 21:30:46 +0200 In-reply-to: <20230112184823.80349-2-andriy.shevchenko@linux.intel.com> Message-ID: <87v8lbpn24.fsf@tarshish> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On Thu, Jan 12 2023, Andy Shevchenko wrote: > The driver doesn't depend on the OF to be complied. Hence > the proper header to use is mod_devicetable.h. Replace of*.h with > the above mentioned and drop redundant dependency. > > Signed-off-by: Andy Shevchenko Acked-by: Baruch Siach baruch > --- > drivers/pinctrl/Kconfig | 2 +- > drivers/pinctrl/pinctrl-digicolor.c | 9 +++++---- > 2 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig > index 476f3cbbdce0..1e44708201ad 100644 > --- a/drivers/pinctrl/Kconfig > +++ b/drivers/pinctrl/Kconfig > @@ -170,7 +170,7 @@ config PINCTRL_DA9062 > > config PINCTRL_DIGICOLOR > bool > - depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST) > + depends on ARCH_DIGICOLOR || COMPILE_TEST > select PINMUX > select GENERIC_PINCONF > > diff --git a/drivers/pinctrl/pinctrl-digicolor.c b/drivers/pinctrl/pinctrl-digicolor.c > index 05213261b8a4..a0423172bdd6 100644 > --- a/drivers/pinctrl/pinctrl-digicolor.c > +++ b/drivers/pinctrl/pinctrl-digicolor.c > @@ -11,18 +11,19 @@ > * - Pin pad configuration (pull up/down, strength) > */ > > +#include > #include > -#include > -#include > -#include > #include > -#include > +#include > +#include > #include > + > #include > #include > #include > #include > #include > + > #include "pinctrl-utils.h" > > #define DRIVER_NAME "pinctrl-digicolor" -- ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -