Re: [PATCH v1 2/3] Documentation: gpio: Add a section on what to return in ->get() callback

From: Linus Walleij
Date: Tue Dec 06 2022 - 19:07:06 EST


On Mon, Dec 5, 2022 at 2:43 AM Kent Gibson <warthog618@xxxxxxxxx> wrote:

> My preference would be for the driver API to be extended with a new
> callback for the output buffer, say get_output(), and have the existing
> get() always return the input buffer.

This has a certain elegance to it, as it cuts to the bone of the
problem and partition it in two halves, reflecting the two pieces
of hardware: input and output buffer. Also follows Rusty Russells
API hierarchy.

Yours,
Linus Walleij