Re: [PATCH v7 6/9] gpio: regmap: Add value_xlate callback
Linus Walleij <[email protected]>
| Newsgroups | org.kernel.vger.linux-gpio,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAD++jLmP55T8Ti9kYWRMrO9s=U1+d35WByJdCMxGUv02cBvq2Q@mail.gmail.com> |
On Thu, Jul 23, 2026 at 5:43 AM Yu-Chun Lin <[email protected]> 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 <[email protected]> > Signed-off-by: Yu-Chun Lin <[email protected]> That's a neat patch! Reviewed-by: Linus Walleij <[email protected]> Yours, Linus Walleij