[{"id":3685636,"web_url":"http://patchwork.ozlabs.org/comment/3685636/","msgid":"<afh2PjFHLCdcZQDK@ninjato>","list_archive_url":null,"date":"2026-05-04T10:34:38","subject":"Re: [PATCH] i2c: Compare the return value of gpiod_get_direction\n against GPIO_LINE_DIRECTION_OUT","submitter":{"id":69646,"url":"http://patchwork.ozlabs.org/api/people/69646/","name":"Wolfram Sang","email":"wsa+renesas@sang-engineering.com"},"content":"On Wed, Apr 15, 2026 at 11:50:21PM +0300, Nikola Z. Ivanov wrote:\n> The GPIO_LINE_DIRECTION_* definitions have just recently been exposed to\n> gpio consumers.h by breaking them out in a separate defs.h file.\n\nYiha, finally!\n\n> Use this to validate the gpio direction instead of the hard-coded literal.\n> \n> Signed-off-by: Nikola Z. Ivanov <zlatistiv@gmail.com>\n\nApplied to for-current, thanks!","headers":{"Return-Path":"\n <linux-i2c+bounces-17217-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-i2c@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=sang-engineering.com header.i=@sang-engineering.com\n header.a=rsa-sha256 header.s=k1 header.b=e9AeWdLs;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-i2c+bounces-17217-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=sang-engineering.com\n header.i=@sang-engineering.com header.b=\"e9AeWdLs\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=194.117.254.33","smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=sang-engineering.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=sang-engineering.com"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g8J1T3C9sz1yJ9\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 04 May 2026 20:34:53 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id CAFBE300A11A\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  4 May 2026 10:34:50 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C3D873A4F47;\n\tMon,  4 May 2026 10:34:47 +0000 (UTC)","from mail.zeus03.de (zeus03.de [194.117.254.33])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 69E5E388369\n\tfor <linux-i2c@vger.kernel.org>; Mon,  4 May 2026 10:34:41 +0000 (UTC)","(qmail 2156265 invoked from network); 4 May 2026 12:34:39 +0200","by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted,\n authenticated); 4 May 2026 12:34:39 +0200"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777890887; cv=none;\n b=szOWh7SWLFzDDW3z64hzus1cxNmAzkPQUrSPnI9Hx80tG4zaL/HoU96zxAnLzLwLpcXDIeV3rZEleEN48S3K/K4Mi31BgUEu3tnE6+CmzVzcL3V9nK6O9da7L3YGRKQeNVcetIeuBilUOmHJiEgRKJ0sb+Ooo2zwG8YzA4hg5kk=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777890887; c=relaxed/simple;\n\tbh=OJ9GKlyaurUwJ/3XL0NQaNUUqnitGkJv8sYoWeru4GI=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=XfwonRLcgm+dWyQGwkHTZqOphuedVdkvhSiK+TJXzKDZt5U07qde0FocQq/4dtxFbWIN+VE64fMnun87CmboGSck3Jbg/bcyns1040Ha70/L6y6gyLNzafiQB0Qy2B2fg7Fi9n8DflH3H2wX7X+zlme2VEUv8I8sxI1v/Z9xYYU=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=sang-engineering.com;\n spf=pass smtp.mailfrom=sang-engineering.com;\n dkim=pass (2048-bit key) header.d=sang-engineering.com\n header.i=@sang-engineering.com header.b=e9AeWdLs;\n arc=none smtp.client-ip=194.117.254.33","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tsang-engineering.com; h=date:from:to:cc:subject:message-id\n\t:references:mime-version:content-type:in-reply-to; s=k1; bh=OJ9G\n\tKlyaurUwJ/3XL0NQaNUUqnitGkJv8sYoWeru4GI=; b=e9AeWdLsWbczTvwNX0vr\n\ttr/aWFJbWNiHqRg5/O3gb5fxaEjaLRZ5k+gyx87THuMlO7LMT9DyFqLiR1LzDKtc\n\ttH10CRypzr7NNWKz6j8088PLuojt+Y6MSeEsySHvfyvVixKcVKNvJmlUpcP6zN0a\n\tiSA4wHJUbtWZcla/xFnkrdA3jPMdYVlB502Ku6YiNXT5Bp7Q2iMO8TKT7e6P/uk5\n\t6dvJwg0ZTe05xYO28SteHUW3ofhF0j/9jqu/ImcRoD2csJygann1OWCI95lSqrZ9\n\tpGYMsva4Y1nIUly+hgPdlmYXfzpBSWxWsZCkoSHjacx7sbvi+AkjOhKfchf+GVcy\n\tMw==","X-UD-Smtp-Session":"l3s3148p1@RlpGevtQxs8ujnvR","Date":"Mon, 4 May 2026 12:34:38 +0200","From":"Wolfram Sang <wsa+renesas@sang-engineering.com>","To":"\"Nikola Z. Ivanov\" <zlatistiv@gmail.com>","Cc":"linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org","Subject":"Re: [PATCH] i2c: Compare the return value of gpiod_get_direction\n against GPIO_LINE_DIRECTION_OUT","Message-ID":"<afh2PjFHLCdcZQDK@ninjato>","References":"<20260415205021.1174764-1-zlatistiv@gmail.com>","Precedence":"bulk","X-Mailing-List":"linux-i2c@vger.kernel.org","List-Id":"<linux-i2c.vger.kernel.org>","List-Subscribe":"<mailto:linux-i2c+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-i2c+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha512;\n\tprotocol=\"application/pgp-signature\"; boundary=\"YYAJQtCNaC1VI/pG\"","Content-Disposition":"inline","In-Reply-To":"<20260415205021.1174764-1-zlatistiv@gmail.com>"}}]