Re: [PATCH v2 1/4] gpio: regmap: Always set gpio_chip get_direction

From: Michael Walle
Date: Thu Nov 17 2022 - 09:40:11 EST


Am 2022-11-17 15:22, schrieb William Breathitt Gray:

Which brings me to the question of "why this change?". The commit
message doesn't mention it. Just out of curiosity.

-michael

Currently, the 104-idi-48 module implements a get_direction() callback
that is executed in situations such as gpiod_get_direction() which
aren't necessarily related to sysfs. In this patch series, the
104-idi-48 module is migrated to the gpio_regmap API, but loses this
get_direction() support because it's an input-only configuration. The
purpose of this patch is to prevent that regression by supporting
get_direction() for input-only/output-only configurations.

I see, thanks for the explanation.

As said before, I'm fine with the change and apparently we don't care
for sysfs changes ;)

-michael