kernel: gpio-cascade: use gpiochip_get_data
authorRosen Penev <rosenp@gmail.com>
Sat, 19 Oct 2024 23:04:26 +0000 (16:04 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 21 Oct 2024 22:49:18 +0000 (00:49 +0200)
commit9bc0517b783fa2cea464b3949f8796ce42dd4205
tree687da315fb2987846025a546580604b509fabc03
parent19bd5436c7bdfc6e904ba35662e9f08f0f10bece
kernel: gpio-cascade: use gpiochip_get_data

Instead of passing NULL to gpiochip_add_data, we can populate the
parameter and use gpiochip_get_data instead of a custom function.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16739
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/generic/pending-6.6/801-gpio-gpio-cascade-add-generic-GPIO-cascade.patch