gpiolib: Unify access to the device properties
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 16 Nov 2022 14:17:28 +0000 (16:17 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 28 Nov 2022 18:00:32 +0000 (19:00 +0100)
commit4ef339bc053a62dac9017f80f7bb8cff0412bd29
tree698a621459d87ac8f695c351ef7d26c0a7e7608f
parent923d011febb4e2fb338036bb0ee6a0a7f9b10da1
gpiolib: Unify access to the device properties

Some of the functions are using struct fwnode_handle, some struct device
pointer. In the GPIO library the firmware node of the GPIO device is the
same as GPIO node of the GPIO chip. Due to this fact we may use former
to access properties everywhere in the code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Tested-by: Marijn Suijten <marijn.suijten@somainline.org>
[Bartosz: stick to the 80-char limit where it's not hurting readability]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib.c