diff options
| author | 2024-01-24 17:21:16 +0100 | |
|---|---|---|
| committer | 2024-02-12 10:51:10 +0100 | |
| commit | 3c7a47f6c5f0d3e3c6149b7eb920f420a741e969 (patch) | |
| tree | f6dbfaec964b3d7b1b4e65de86f97eba4823a52a /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | gpio: cdev: replace gpiochip_get_desc() with gpio_device_get_desc() (diff) | |
gpio: cdev: don't access gdev->chip if it's not needed
The variable holding the number of GPIO lines is duplicated in GPIO
device so read it instead of unnecessarily dereferencing the chip
pointer.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
