staging: greybus: gpio: use gpiochip_get_data
authorRosen Penev <rosenp@gmail.com>
Mon, 21 Oct 2024 02:32:17 +0000 (19:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Nov 2024 23:50:59 +0000 (00:50 +0100)
commit5300c32def19a77928e3c7821275996c75c80d1e
treebb75d37a4e9009b603fdbd2153e49822a924eec0
parentb8fa1677c33394da17ad9139897594b671ba767e
staging: greybus: gpio: use gpiochip_get_data

Instead of container_of, we can populate gpiochip_add_data 's last
parameter and use gpiochip_get_data. It seems to be the standard.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://lore.kernel.org/r/20241021023217.319545-1-rosenp@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/gpio.c