gpio: set device type for GPIO chips
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 5 Feb 2024 10:08:11 +0000 (11:08 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 8 Feb 2024 09:35:59 +0000 (10:35 +0100)
commitaab5c6f200238ac45001bec3d5494fff8438a8dc
treea45827c03f6404da265148774bfb2dc54c3c9215
parenta875746f603b86134bd1924b7289fc3542fd45e7
gpio: set device type for GPIO chips

It's useful to have the device type information for those sub-devices
that are actually GPIO chips registered with GPIOLIB. While at it: use
the device type struct to setup the release callback which is the
preferred way to use the device API.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpiolib.c