From patchwork Mon Mar 18 19:34:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13595752 X-Patchwork-Delegate: kuba@kernel.org 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dVfYLCC8" 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: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org 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)