Received: by 2002:a05:7208:3228:b0:82:47:81bb with SMTP id cb40csp544529rbb; Fri, 12 Apr 2024 08:59:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUA05gBilmEKQFthfI3H9TH2ylYgHxUNyMiFywqzcrBqYSYB6mLTEwCZzGnDSjJa66vxpKwhDdUUbEAaG9jwzIqxelMWYEuXstAqpOY8w== X-Google-Smtp-Source: AGHT+IFwB0SVxGSVRQdgbx1ZCUrB1MWNSRKGYcfzLgrMGLkOUx5Z/ImHktUAj4lofmzjyHPf4xIP X-Received: by 2002:a05:6a21:2d85:b0:1a9:c13e:f211 with SMTP id ty5-20020a056a212d8500b001a9c13ef211mr583011pzb.47.1712937547560; Fri, 12 Apr 2024 08:59:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712937547; cv=pass; d=google.com; s=arc-20160816; b=HZAr598UPZUiBjRobpObHPGJ2NZ3DYPOiEOADDI2HMnMMOtQCV7ytlmx/SSOB90vZN wAFD9lAhXCLqj+YIUdSO17TX4G8q5zli3FPxJ9I0zwP+CrlocuIIYZC85d3dzx4ypej2 sIQNHdhm+d517OSiz2dQF0pJaJJ676OjnTjYwrHGnMQu5WiKiY41yND37gtrSAy5YNDo z/jR9z46i1YKFyfduvkzcybRgpBvOg6ThciOptu06T7hi2YE28QQecN3dx+ds4ohAOrM DUFvDf1dg9gGzOTa8CPbGuQh1sVjtYDz4L2Ss0RKQfxYGEORzXSGUYo8f/wKBfb5JKu9 p/zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=+QeZTjIa/wBzuyAh2iDtuKwE9hLUU+dIcy+yqW+H01E=; fh=5Pu4EJUoJPf83dFpFiOybEPmU4aVCqfb6Slp66qEePQ=; b=rHgfjXmFDdLlcGING6VKATGe0/zjRsz6K+S4LaCeKTpdmR4Xw8enEGKOO2mktoGocH pZzIx3bn4Kz/d6BvQHYZilFxZPHAU4sRTjPpWoXa/RJkCCyHF8wUMY2gISrk9DZIHYg0 CHaJP2jrZO0dUF7bJE+P6TdbLIGfJPPnZFqIzoTe2NjRkd2TClhgA2VRz0oiIWTPyAtk 7fGzoqD/lYg9eK/eXmT2rg0P1/nsp5WqbVaPNTn2wV6bpoowqOi+h7mCwd+vtf/cGHdA Qh90/AA1k1/+EzayJ7TaQozV/WwP1Fe2bXiwfSF22YWeuZX7HHThg48vqxZY94ZFc7U+ wULg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Mby8F6jc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-142992-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ep11-20020a17090ae64b00b0029bd4f70048si5489741pjb.170.2024.04.12.08.59.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 08:59:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142992-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Mby8F6jc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-142992-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4094A28424E for ; Fri, 12 Apr 2024 15:59:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62E951494A3; Fri, 12 Apr 2024 15:58:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Mby8F6jc" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B90CB14884C; Fri, 12 Apr 2024 15:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712937521; cv=none; b=OE4QTMc8bJ3etpmINNHKeZfJnMPLzsYoF7IDe022a+ISEES0WZJUBrHmiLQ7vyEyujTmIw8BsOhOvVWCtIe9383iuEnqlgU7yAehnbNbt3BgVaCd2nqz75EvkeL6uuDjYrDyT9/AQ1XRb2YKXZRaGsCmwdAG6gUNHGPfGfp2HCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712937521; c=relaxed/simple; bh=uWba588n4UF9O6oCEqHQ/rQZoozxVX+XVJ77lMRZTzg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oi7TEDSLJNeLxiqsRTIgDh1N1mBUy64OBQO148d5e6fHc90q5wpv8a1i+tgAltPL2xZk2+H3D5Knr066uUHV79C9XgtyPg/ssIA8dlhxm17CzBaQsQX2BBQUaFsh4ZyRpOulMd9kbJZunSt9xlqR52ud6yGh8OvRUhzOeJrd4k0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Mby8F6jc; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712937520; x=1744473520; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uWba588n4UF9O6oCEqHQ/rQZoozxVX+XVJ77lMRZTzg=; b=Mby8F6jcFfvF+hnwg3MuRmEfbAiCpknie1VzbUZtSPOWyAPEqmLTOfQ0 Xdld5rvfa2EyevpQTILXbMVI/svRkwATyY6HuUWmalfmXOy2uKmTn0Prc 4c+VuYgxtjn2JtGIHNl/meycXcul7/jxrd9XSdtL8tavwKTgpaxYzaDIV ahMJ5lWVKOus12ovkV+PhYOlnDp7Br658jjelT2vMDkd6Fr9DtP7VL77u ax+qFklbls3PJAxV/Nj7qFVNS2zyORlJ/reAF5kB4ecs+Y1W3fg5nD6r4 LHsulrim2BXqaMCYwrhpqW6sDEFJ8dCE9hexmEI2hDAr+aRW1y4qQ1ODz w==; X-CSE-ConnectionGUID: phwb1nEqSeeRH4D9mDiBkw== X-CSE-MsgGUID: ETwxBrKyQQKbILieWeSkhw== X-IronPort-AV: E=McAfee;i="6600,9927,11042"; a="8267137" X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="8267137" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 08:58:39 -0700 X-CSE-ConnectionGUID: vb7lRsB+SGma6h9FaBee4A== X-CSE-MsgGUID: X8nCT/rBQHmfpd49t+pIzw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="21352506" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa008.fm.intel.com with ESMTP; 12 Apr 2024 08:58:37 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id BE135E7; Fri, 12 Apr 2024 18:58:35 +0300 (EEST) From: Andy Shevchenko To: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix , Andy Shevchenko , Stephen Rothwell Subject: [PATCH v1 1/1] fpga: ice40-spi: Remove redundant of_match_ptr() macros Date: Fri, 12 Apr 2024 18:58:30 +0300 Message-ID: <20240412155830.96137-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Since the driver hi6421-regulator depends on CONFIG_OF, it makes no difference to wrap of_match_ptr() here. Remove of_match_ptr() macros to clean it up. While at it, add missing mod_devicetable.h. Reported-by: Stephen Rothwell Closes: https://lore.kernel.org/r/20240412151147.22a059ff@canb.auug.org.au Fixes: 5d04660b29fb ("fpga: ice40-spi: Remove unused of_gpio.h") Signed-off-by: Andy Shevchenko --- drivers/fpga/ice40-spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/fpga/ice40-spi.c b/drivers/fpga/ice40-spi.c index 46927945f1b9..62c30266130d 100644 --- a/drivers/fpga/ice40-spi.c +++ b/drivers/fpga/ice40-spi.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -198,7 +199,7 @@ static struct spi_driver ice40_fpga_driver = { .probe = ice40_fpga_probe, .driver = { .name = "ice40spi", - .of_match_table = of_match_ptr(ice40_fpga_of_match), + .of_match_table = ice40_fpga_of_match, }, .id_table = ice40_fpga_spi_ids, }; -- 2.43.0.rc1.1336.g36b5255a03ac