Re: [PATCH v7 6/9] gpio: regmap: Add value_xlate callback
From: Linus Walleij
Date: Thu Jul 23 2026 - 17:15:07 EST
On Thu, Jul 23, 2026 at 5:43 AM Yu-Chun Lin <eleanor.lin@xxxxxxxxxxx> wrote:
> Introduce a new optional 'value_xlate' callback. This routine allows drivers
> to translate or modify the register value and mask immediately before a write
> operation. It is particularly useful for hardware that requires additional
> control bits, such as a write-enable bit, to be appended to the data
> dynamically.
>
> Suggested-by: Michael Walle <mwalle@xxxxxxxxxx>
> Signed-off-by: Yu-Chun Lin <eleanor.lin@xxxxxxxxxxx>
That's a neat patch!
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij