Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp727024rwb; Thu, 12 Jan 2023 11:27:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXuoJdTpy4YJYan0CiJt2mACfH69VZ6ZyKcv3qmCLMjqQMKsiTfSyLnhh9lVaNSG99sbbrR7 X-Received: by 2002:a05:6a21:9990:b0:a6:f26b:558 with SMTP id ve16-20020a056a21999000b000a6f26b0558mr118806801pzb.16.1673551656084; Thu, 12 Jan 2023 11:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673551656; cv=none; d=google.com; s=arc-20160816; b=wm2SRVi35dKJdlyAIgRu0UfswreLGdH8HtyKgQlGP1YeWQTKBKwYKQh79IFs9ycTC/ kA2uxvqj0E4q6qdPGI3xM6psveY+fj6dmkWbbj3BZWBnkTPMvchKjcI9n0tG6kfaQq9q FHbgFIyKfKb9MozOlXBsgQGx621V+1d2/cDKjqXWP8MN9j4IFzcnkWjAm3ooiqxHicj0 hvBYx6J+g0rx2aKcovSfkQL5YqjteL/HioS4LkSvmXx58yxKIWb+N44z7fX0I94/AdJ7 HSmIZAwckmYpZ5fJjm/KIg8WKoXmS4U2OuWNHgf6QGE67qkSbr8PNhYS3JKoiHsPd8hs /0cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=//nm89K4sg/s7RKHR56R2xIiejmI5Wc+bg2U4DeC3ms=; b=iQQyIeu3o1XegWoqNO9SSogIP5DgsBAQbPBUyR3Y6RDQtaziIv1nwcAFg9+dUIx4jM PpKHINt10lxcHMVKuez2QMUKQGX4CMSdIyRMZ3WCLHam8k/nEmocf14U6ZcCv0MTfDyJ 1BBcw0uOz8B45HCKmN9Pk4+a+1XRCoqHV+hF6tNeEWXmYd5UEJfTbobmJqkuB/DhJ+Fk Bt3gU3nzhcULsk8sQm0b3VnhJylKuNXM7OM2oDCe5QB3+V9eQ4UOWRtR49hmzzYPBKJd Tqnc1j4EgrPYjbzL8aS7KhxoDx8TTkXxGkpH2NSudT+1RyIjlSDPm359htihaIe4EZ7a t4Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iGCeQcHY; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j25-20020a635519000000b004610dceef13si18020569pgb.336.2023.01.12.11.27.30; Thu, 12 Jan 2023 11:27:36 -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=@intel.com header.s=Intel header.b=iGCeQcHY; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240284AbjALTG7 (ORCPT + 50 others); Thu, 12 Jan 2023 14:06:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237748AbjALTFn (ORCPT ); Thu, 12 Jan 2023 14:05:43 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC2A253701; Thu, 12 Jan 2023 10:47:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673549280; x=1705085280; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ISG4iMQCmJbQyOjDtFzJuWJ6r9CraDTaJ1v4LxJL5H8=; b=iGCeQcHYfVice9l/n+aJmmTE2VH9ahVOp0iM6nNplxFwzUIUNG6OKZTn k/YKIX9iskFIBlqT3Az+5zI733ZEf0bZJTE8G1GwPBo9MLJqTPIyTiCF+ JpZO8pDs/UF3zvdZ+eoKyLdcq50cOWETDBd2uFxc2Ponl3KQF2Gn+YTBk uBoI55mNm5YvE0w9WYkd7u8tSFPmT1dTQ1e3emc3WZVTaKDb/MZpJnph0 IoXoM0259jbOHhkUn7LWWdTHnScGLeudJPIZxQTHcW8GXCwsDQa+EsWT+ f9+lzj3DikpnbFxj4z132MD+hF5nJgUvjPS7av/G0Xxvwi306Aw+TypDa A==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="351021824" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="351021824" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 10:47:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="800333026" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="800333026" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 12 Jan 2023 10:47:56 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 562691A3; Thu, 12 Jan 2023 20:48:30 +0200 (EET) From: Andy Shevchenko To: Linus Walleij , Jianlong Huang , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Baruch Siach Subject: [PATCH v1 2/2] pinctrl: digicolor: Use proper headers and drop OF dependency Date: Thu, 12 Jan 2023 20:48:23 +0200 Message-Id: <20230112184823.80349-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230112184823.80349-1-andriy.shevchenko@linux.intel.com> References: <20230112184823.80349-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 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 --- 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" -- 2.39.0