Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp515812lqt; Mon, 18 Mar 2024 15:01:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWPRIANivC9nz7c+pRjngKgb3JrnLHSrOZ6r0s1Xh7Dp8QaMDibsQtJ8dvfG/Y5aWtpX1e7ayKPAXmNHMTO41gOMHguSY9oqaRSgahSw== X-Google-Smtp-Source: AGHT+IFijMwDqAICOXB9/DJ+p4A+KG818XpnIxWN0PlUssytqT2pXfMMr+3leEdoytta/ToJuHTP X-Received: by 2002:ac2:4c19:0:b0:513:a73f:c0ed with SMTP id t25-20020ac24c19000000b00513a73fc0edmr9572424lfq.51.1710799318542; Mon, 18 Mar 2024 15:01:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710799318; cv=pass; d=google.com; s=arc-20160816; b=SMbEZLV9oupclyVeAkFcmpjrkBgLBMOhZSyVV4rmDTEeKo7u3aFGet2IfH8Jl9ndkv 3pVRuF0P6FD2FkfeDtCfH3LOF9GQaonrS/XqjzMiAENSnu3rlCA6fSe6R4okPsg932gP 2jpQPj2QG09lOhij+/HT4LWjPgs60F4xMXBhoI7zq8GGx1SIGZBMuHxPkaF1nywwQ3g1 VcSQ9HE8xOoEQh4TPIbdgiitVWuqSKijSowhX9Pg5XnA2iJx/dD3+eGHpsS2k4+WZDz/ jOS1r0hGxU9bovQyUDY3NVy50MyyqBsSYaii1OBRQdlI6f94ieS9HN3xlLVmSLTl2bVf XfzA== 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=m8tWiLSWfORfvoSsoEPCgEu13ahgeVv3lEuZyM+CpiI=; fh=rbWIN84WOPEeeWsRl2VmBAuNdsgZQVM3SPtUVovqBl4=; b=VmvPETalFLTgtylCZeVP5TiBuBRyruGqXUT7O1PJbhePLgtYf8FuG2u1rtzs86Ev46 RRx6YhyzMzbDMncur8KioQsVl2unlC7tCD8+D4HGBEwBFWepZPYAAHMP6FR4ZzaQ+EpS qILdhgpSXFVlW33uXDOk2NF0flTYgPKAoJyrBvxOuMdSJt9IgO860TqVnupMFMER/SJl jIB/Fp0HVxTBddKWCkFuhvqYDxYROmX75WFwVlV8dE3ExTXkfr3JbxEvWOYBuPfti/4N boCfZl3yPqaQWw81HAF2rrb7HdZmXQg5oZtshPUb90t04CfRP4nmFUfn0ObvXhK6USYu bQlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dVfYLCC8; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-106571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lx9-20020a170906af0900b00a466e7af76bsi4674470ejb.528.2024.03.18.15.01.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 15:01:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dVfYLCC8; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-106571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106571-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 97D711F22B2D for ; Mon, 18 Mar 2024 19:34:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC02B57327; Mon, 18 Mar 2024 19:34:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dVfYLCC8" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 45E7456755; Mon, 18 Mar 2024 19:34:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710790458; cv=none; b=icgir2XucK9V7zv3ANS0j3n8wTmElGa/qvYjx7klD0l+perAClfseLgITtsmtO2feYA0vre5aJWvDwhV4wiezuWY0OscGz50SiBFjyA0VJKHWCZ3ElGvE48Z6d8lxFPQseTtAs6oqVZox8cmWJ0+kWTVp/1ZYI2Se14eZDQkHE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710790458; c=relaxed/simple; bh=WAqvSCeWKnQz/3u9XZbC3se4rVNmhg3scOEQtWkbPig=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mwYDBEn51XKdvmWUVNLnLmdFcnXz7+XASQ8u366KxuMYCi00mUXDbJCw9JaGeqqRlVBLoNtRrs7ffGlZYZ7vNzdkhN1gq8lc4zR/zLJTMfuTSOoNy7w2+Yj95aTfWXStMaGFv0cmCb7Mo3dhhLJ2ze/BXeFTA3191DKhYD7CjvU= 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=dVfYLCC8; arc=none smtp.client-ip=198.175.65.13 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=1710790456; x=1742326456; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=WAqvSCeWKnQz/3u9XZbC3se4rVNmhg3scOEQtWkbPig=; b=dVfYLCC8WFKwkakaQ54OFlUEdQuthYpqu4VWNnIUFZIaaXdJR12Hc0oE p5x/IXrnqmTSK/df5AI1wmsBeiBKZajulrVCN3Jk2Emo2Ix1xcCfB5DW9 Qjozq64F2fDiGJXjAaavR1cj+ctMP/kX1v2jQnLtFzuSdkU8EVzVVQC6y mSeM7qVXvrNWsZZsEKxAHTwThvgONQI2gidnNef4Rvov8nK6GrFEUNeSj uI12NRZiwIhwjddNNvWqdIwluPYE/02neLMR4tJY69Irb1y20/OCB1Bcl MhTJe0w713Oo/1xx8BSkIZoVsEqCRCnbsIB48NIHN2LQFkrCvs4JtJRZp w==; X-IronPort-AV: E=McAfee;i="6600,9927,11017"; a="16774609" X-IronPort-AV: E=Sophos;i="6.07,135,1708416000"; d="scan'208";a="16774609" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2024 12:34:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11017"; a="937060631" X-IronPort-AV: E=Sophos;i="6.07,135,1708416000"; d="scan'208";a="937060631" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 18 Mar 2024 12:34:12 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id D9A20815; Mon, 18 Mar 2024 21:34:11 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: [PATCH net-next v1 1/1] can: mcp251x: Fix up includes Date: Mon, 18 Mar 2024 21:34:10 +0200 Message-ID: <20240318193410.178163-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This driver is including the legacy GPIO header but the only thing it is using from that header is the wrong define for GPIOF_DIR_OUT. Fix it up by using GPIO_LINE_DIRECTION_* macros respectively. Signed-off-by: Andy Shevchenko --- drivers/net/can/spi/mcp251x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/can/spi/mcp251x.c b/drivers/net/can/spi/mcp251x.c index 79c4bab5f724..643974b3f329 100644 --- a/drivers/net/can/spi/mcp251x.c +++ b/drivers/net/can/spi/mcp251x.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -482,9 +481,9 @@ static int mcp251x_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) { if (mcp251x_gpio_is_input(offset)) - return GPIOF_DIR_IN; + return GPIO_LINE_DIRECTION_IN; - return GPIOF_DIR_OUT; + return GPIO_LINE_DIRECTION_OUT; } static int mcp251x_gpio_get(struct gpio_chip *chip, unsigned int offset) -- 2.43.0.rc1.1.gbec44491f096