Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp108887lqp; Fri, 12 Apr 2024 11:51:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNsvcwJzdJGj9m5yEZz2g2ZEq0/OyUULQqUxUuPmZsm3hzrRElJaXpmxqrUTTy+j1O5dwHG7vWhibuKLc7j45DVF3QXKdDCE5znFfubA== X-Google-Smtp-Source: AGHT+IELkJ37o3c7dDv9WCj1IHQ/KB60c/QkQVdHCwnVmgJ0ehN02kSRRfjz1plGG+bixHDtfqSe X-Received: by 2002:a17:906:ad83:b0:a52:34e7:ba11 with SMTP id la3-20020a170906ad8300b00a5234e7ba11mr1739119ejb.55.1712947882098; Fri, 12 Apr 2024 11:51:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712947882; cv=pass; d=google.com; s=arc-20160816; b=ATEn869jaoYXSX8eKHvuyBQP29rHoroo4/SJhzx/9ntpy+Awjf0faXImMBe0Nz4xLL ezEDhyK87A1amIrXwViXEXziv87GHEnnGUZFsgvmKDol7W+3r+dL0+OtO8pzDjThGEdS 6SCvmgZoRrkQbV9Av0XpIJ0Gk4CctXGCSvgNhO0Ztu05Oex3PKsBpPVdIt3R4DXZssS8 cCRIZ26dCC/UnZ3HkiXWH6IhkC/W9H9Lqe21Mfy9QOVHW03KQvOpVJ0oHnO/HF0nlopb SMafcG8iHyeYomTVrCPBrCgqoskXDZPnfrRKoi/uDpF6prWWu2uJjms7X/jt9rOVIopo b+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=SLobvcvZ/Ocj58tedaUzAA/miLBjP4ebasHYMpvAJSs=; fh=tTpA1Gpv1CXvUGyJcXtDwy1ZprREzZdUulMVoEDDksw=; b=fseXcd1Xichv86eGXUK548K17Yo9tDMuDPv3I3T3jZI3EyuFQL2XFx84aRixio0NT6 mx6gpe5zgj12Ajvu8KnfXhzv0a7xU3/vM68NKK9vU9AAVGMlKae1VfgFgW7mYv9JGYFI ctwdjq85wBiHoGE2q6WcFZVUyWkF7T+dc7LGniUqQWP/BvTyFy65upndWSIlNsZxsXBh oBG4M67+azUzsymDaFRCCbJDLxfNESpm8XrZvHptX06t6meRUhRkQCRPpPsFFYHUDQT6 py/x0JesLNu828m2ltCLAECIxqxPQWiJFBYgAJjT3y2M43ULwIODA4ssjd7pAZTFPP/A 18bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YDbqWkc1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-143129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143129-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 qa15-20020a170907868f00b00a524435f489si124599ejc.295.2024.04.12.11.51.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 11:51:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143129-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=YDbqWkc1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-143129-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143129-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 87C2F1F232D2 for ; Fri, 12 Apr 2024 17:33:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E87B14D6F5; Fri, 12 Apr 2024 17:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YDbqWkc1" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 33A945491F; Fri, 12 Apr 2024 17:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712943222; cv=none; b=vF/xNFizHAVWI0qj88m6V/xAm4UQpvlhrg6UU1DLyNiEipV0uzAp2CbTnvcrc51mwEok1hcsftwwRgoHyO9wf5z+Z6SZBfLbFuiJ7EjVqck2N8ypcdp7He1QFyNYMgLK56YLNffoyUM9gDOJJL5gI1e9VBBxzTsGs3lhyanA3a4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712943222; c=relaxed/simple; bh=+Kb4STvNJ+pOq+Bbj0vo6MDVZVuYbMArjfmW9xuJGRM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V2aeP1KnFdBociHNc29FDYPL6LI3vDyhPYzN1i+Lp+f/NOWV4K9AI1CT9BQvQbMACADDv9xg9YrVSs8LS5pgcAT85X93dtkbkBxDurJ+lMvQSi0uz6Hqp1H4B161l0z5YN6L4ZDnpRQfdN05zPPE6vjJBZk6lPlZntqwsRlfen4= 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=YDbqWkc1; arc=none smtp.client-ip=198.175.65.18 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=1712943221; x=1744479221; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+Kb4STvNJ+pOq+Bbj0vo6MDVZVuYbMArjfmW9xuJGRM=; b=YDbqWkc1C+vbY0lABkO1YMTeUx43Se7tvGWT6H+/sYc78H9yb777Qzmn xHiiuirbns7h5AEjolHKYctOuNpwq1JCakZ3cQDy00jV5MXhoe/4kZjCx n0ze3gdrcgSJIKtByuxIO2aPquYpSbhmDLG8aEx0LgePXURdcD+xFQf3+ Bt91Urs9pDh16D8GwtiUuIfYgH14tclZxoAsOp5gN+58obWgtlfix1BxY UowbTeLXSUUEtyFktb/7ECqUHytJGQr8sV5APR2ErjoZr+vZ4J6zYZcyp lHlB9pKUQWidjy4/Js9+ZliKRIb79ntM4BigZ1g1HH5yNQafotFaLr5Ws w==; X-CSE-ConnectionGUID: wCycNY2DTS2Eetw2E0d61A== X-CSE-MsgGUID: gcps37+oT5a1Ab8HfOK8Eg== X-IronPort-AV: E=McAfee;i="6600,9927,11042"; a="8578640" X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="8578640" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 10:33:40 -0700 X-CSE-ConnectionGUID: PepGGd6URwelQES4/NIPNQ== X-CSE-MsgGUID: 1KzlB0FzTxiRHI3zLn1afA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="21326063" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa006.fm.intel.com with ESMTP; 12 Apr 2024 10:33:38 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id C3039FF; Fri, 12 Apr 2024 20:33:36 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , Vincent Mailhol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: [PATCH net-next v1 1/1] can: mcp251x: Fix up includes Date: Fri, 12 Apr 2024 20:33:32 +0300 Message-ID: <20240412173332.186685-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 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.1336.g36b5255a03ac