Re: [PATCH] i2c: Compare the return value of gpiod_get_direction against GPIO_LINE_DIRECTION_OUT
From: Wolfram Sang
Date: Mon May 04 2026 - 06:34:58 EST
On Wed, Apr 15, 2026 at 11:50:21PM +0300, Nikola Z. Ivanov wrote:
> The GPIO_LINE_DIRECTION_* definitions have just recently been exposed to
> gpio consumers.h by breaking them out in a separate defs.h file.
Yiha, finally!
> Use this to validate the gpio direction instead of the hard-coded literal.
>
> Signed-off-by: Nikola Z. Ivanov <zlatistiv@xxxxxxxxx>
Applied to for-current, thanks!
Attachment:
signature.asc
Description: PGP signature