Re: [PATCH] gpiolib: Remove data-less gpiochip_add() function

From: Greg Kroah-Hartman
Date: Tue Jun 11 2024 - 02:37:46 EST


On Mon, Jun 10, 2024 at 08:53:13AM -0500, Andrew Davis wrote:
> GPIO chips should be added with driver-private data associated with the
> chip. If none is needed, NULL can be used. All users already do this
> except one, fix that here. With no more users of the base gpiochip_add()
> we can drop this function so no more users show up later.
>
> Signed-off-by: Andrew Davis <afd@xxxxxx>
> ---
> Documentation/driver-api/gpio/driver.rst | 5 ++---
> drivers/staging/greybus/gpio.c | 2 +-
> include/linux/gpio/driver.h | 4 ----
> 3 files changed, 3 insertions(+), 8 deletions(-)

Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>