-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpiolib: Pass consumer device through to core in devm_fwnode_gpiod_ge…
…t_index() This devm API takes a consumer device as an argument to setup the devm action, but throws it away when calling further into gpiolib. This leads to odd debug messages like this: (NULL device *): using DT '/gpio-keys/switch-pen-insert' for '(null)' GPIO lookup Let's pass the consumer device down, by directly calling what fwnode_gpiod_get_index() calls but pass the device used for devm. This changes the message to look like this instead: gpio-keys gpio-keys: using DT '/gpio-keys/switch-pen-insert' for '(null)' GPIO lookup Note that callers of fwnode_gpiod_get_index() will still see the NULL device pointer debug message, but there's not much we can do about that because the API doesn't take a struct device. Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Fixes: 8eb1f71 ("gpiolib: consolidate GPIO lookups") Signed-off-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
- v6.17
- v6.17-rc7
- v6.17-rc6
- v6.17-rc5
- v6.17-rc4
- v6.17-rc3
- v6.17-rc2
- v6.17-rc1
- v6.16.9
- v6.16.8
- v6.16.7
- v6.16.6
- v6.16.5
- v6.16.4
- v6.16.3
- v6.16.2
- v6.16.1
- v6.16
- v6.16-rc7
- v6.16-rc6
- v6.16-rc5
- v6.16-rc4
- v6.16-rc3
- v6.16-rc2
- v6.16-rc1
- v6.15.11
- v6.15.10
- v6.15.9
- v6.15.8
- v6.15.7
- v6.15.6
- v6.15.5
- v6.15.4
- v6.15.3
- v6.15.2
- v6.15.1
- v6.15
- v6.15-rc7
- v6.15-rc6
- v6.15-rc5
- v6.15-rc4
- v6.15-rc3
- v6.15-rc2
- v6.15-rc1
- v6.14.11
- v6.14.10
- v6.14.9
- v6.14.8
- v6.14.7
- v6.14.6
- v6.14.5
- v6.14.4
- v6.14.3
- v6.14.2
- v6.14.1
- v6.14
- v6.14-rc7
- v6.14-rc6
- v6.14-rc5
- v6.14-rc4
- v6.14-rc3
- v6.14-rc2
- v6.14-rc1
- v6.13.12
- v6.13.11
- v6.13.10
- v6.13.9
- v6.13.8
- v6.13.7
- v6.13.6
- v6.13.5
- v6.13.4
- v6.13.3
- v6.13.2
- v6.13.1
- v6.13
- v6.13-rc7
- v6.13-rc6
- v6.13-rc5
- v6.13-rc4
- v6.13-rc3
- v6.13-rc2
- v6.13-rc1
- v6.12.49
- v6.12.48
- v6.12.47
- v6.12.46
- v6.12.45
- v6.12.44
- v6.12.43
- v6.12.42
- v6.12.41
- v6.12.40
- v6.12.39
- v6.12.38
- v6.12.37
- v6.12.36
- v6.12.35
- v6.12.34
- v6.12.33
- v6.12.32
- v6.12.31
- v6.12.30
- v6.12.29
- v6.12.28
- v6.12.27
- v6.12.26
- v6.12.25
- v6.12.24
- v6.12.23
- v6.12.22
- v6.12.21
- v6.12.20
- v6.12.19
- v6.12.18
- v6.12.17
- v6.12.16
- v6.12.15
- v6.12.14
- v6.12.13
- v6.12.12
- v6.12.11
- v6.12.10
- v6.12.9
- v6.12.8
- v6.12.7
- v6.12.6
- v6.12.5
- v6.12.4
- v6.12.3
- v6.12.2
- v6.12.1
- v6.12
- v6.12-rc7
- v6.12-rc6
- v6.12-rc5
- v6.12-rc4
- v6.12-rc3
- v6.12-rc2
- v6.12-rc1
- v6.11.11
- v6.11.10
- v6.11.9
- v6.11.8
- v6.11.7
- v6.11.6
- v6.11.5
- v6.11.4
- v6.11.3
- v6.11.2
- v6.11.1
- v6.11
- v6.11-rc7
- v6.11-rc6
- v6.11-rc5
- v6.11-rc4
- v6.11-rc3
- v6.11-rc2
- v6.11-rc1
- v6.10.14
- v6.10.13
- v6.10.12
- v6.10.11
- v6.10.10
- v6.10.9
- v6.10.8
- v6.10.7
- v6.10.6
- v6.10.5
- v6.10.4
- v6.10.3
- v6.10.2
- v6.10.1
- v6.10
- v6.10-rc7
- v6.10-rc6
- v6.10-rc5
- v6.10-rc4
- v6.10-rc3
- v6.10-rc2
- v6.10-rc1
- v6.9.12
- v6.9.11
- v6.9.10
- v6.9.9
- v6.9.8
- v6.9.7
- v6.9.6
- v6.9.5
- v6.9.4
- v6.9.3
- v6.9.2
- v6.9.1
- v6.9
- v6.9-rc7
- v6.9-rc6
- v6.9-rc5
- v6.9-rc4
- v6.9-rc3
- v6.9-rc2
- v6.9-rc1
- thermal-6.17-rc1
- thermal-6.16-rc1
- thermal-6.15-rc8
- thermal-6.15-rc3
- thermal-6.15-rc1
- thermal-6.15-rc1-2
- thermal-6.14-rc5
- thermal-6.14-rc3
- thermal-6.14-rc1
- thermal-6.13-rc7
- thermal-6.13-rc4
- thermal-6.13-rc1
- thermal-6.13-rc1-3
- thermal-6.13-rc1-2
- thermal-6.12-rc7
- thermal-6.12-rc3
- thermal-6.12-rc1
- thermal-6.11-rc5
- thermal-6.11-rc4
- thermal-6.11-rc2
- thermal-6.11-rc1
- thermal-6.11-rc1-3
- thermal-6.11-rc1-2
- thermal-6.10-rc8
- thermal-6.10-rc6
- thermal-6.10-rc5
- thermal-6.10-rc4
- thermal-6.10-rc3
- thermal-6.10-rc1
- thermal-6.10-rc1-2
- thermal-6.9-rc7
- thermal-6.9-rc5
- thermal-6.9-rc3
- thermal-6.9-rc2
- thermal-6.9-rc1-2
- rocm-6.4.2
- rocm-6.4.1
- rocm-6.4.0
- rocm-6.3.3
- rocm-6.3.2
- rocm-6.3.1
- rocm-6.3.0
- pm-runtime-devm-6.16
- pm-runtime-6.17-rc1
- pm-6.17-rc1
- pm-6.16-rc7
- pm-6.16-rc6
- pm-6.16-rc5
- pm-6.16-rc2
- pm-6.16-rc1
- pm-6.16-rc1-3
- pm-6.16-rc1-2
- pm-6.15-rc5
- pm-6.15-rc4
- pm-6.15-rc3
- pm-6.15-rc1
- pm-6.15-rc1-2
- pm-6.14-rc5
- pm-6.14-rc2
- pm-6.14-rc2-2
- pm-6.14-rc1
- pm-6.14-rc1-2
- pm-6.13-rc8
- pm-6.13-rc4
- pm-6.13-rc3
- pm-6.13-rc1
- pm-6.13-rc1-3
- pm-6.13-rc1-2
- pm-6.12-rc8
- pm-6.12-rc7
- pm-6.12-rc5
- pm-6.12-rc4
- pm-6.12-rc3
- pm-6.12-rc2
- pm-6.12-rc1
- pm-6.12-rc1-2
- pm-6.11-rc7
- pm-6.11-rc6
- pm-6.11-rc3
- pm-6.11-rc1
- pm-6.10-rc8
- pm-6.10-rc6
- pm-6.10-rc4
- pm-6.10-rc3
- pm-6.10-rc1
- pm-6.10-rc1-2
- pm-6.9-rc4
- pm-6.9-rc3
- pm-6.9-rc1-2
- next-20250804
- next-20250417
- next-20241021
- next-20240703
- next-20240627
- next-20240619
- next-20240514
- next-20240424
- next-20240423
- next-20240422
- md-6.13-20241107
- md-6.13-20241105
- md-6.12-20241018
- md-6.12-20240906
- md-6.12-20240905
- md-6.12-20240829
- md-6.11-20240815
- md-6.11-20240712
- md-6.11-20240704
- md-6.11-20240612
- md-6.10-20240502
- md-6.10-20240425
- mariux-6.12.49-487
- mariux-6.12.43-485
- mariux-6.12.40-484
- mariux-6.12.29-483
- mariux-6.12.27-482
- mariux-6.12.23-481
- mariux-6.12.23-480
- mariux-6.12.11-479
- i2c-for-6.17-rc1
- i2c-for-6.17-rc1-part2
- i2c-for-6.16-rc8
- i2c-for-6.16-rc7
- i2c-for-6.16-rc5
- i2c-for-6.16-rc4
- i2c-for-6.16-rc3
- i2c-for-6.16-rc1
- i2c-for-6.15-rc7
- i2c-for-6.15-rc6
- i2c-for-6.15-rc5
- i2c-for-6.15-rc3
- i2c-for-6.15-rc1
- i2c-for-6.14-rc8
- i2c-for-6.14-rc7
- i2c-for-6.14-rc5
- i2c-for-6.14-rc4
- i2c-for-6.14-rc3
- i2c-for-6.14-rc2
- i2c-for-6.14-rc1
- i2c-for-6.14-rc1-take2
- i2c-for-6.13-rc8
- i2c-for-6.13-rc5
- i2c-for-6.13-rc3
- i2c-for-6.13-rc1
- i2c-for-6.13-rc1-part3
- i2c-for-6.13-part2
- i2c-for-6.12-rc7
- i2c-for-6.12-rc2
- i2c-for-6.12-rc1
- i2c-for-6.12-rc1-additional_fixes
- i2c-for-6.11-rc4
- i2c-for-6.11-rc3
- i2c-for-6.11-rc1
- i2c-for-6.11-rc1-try2
- i2c-for-6.11-rc1-second-batch
- i2c-for-6.11-final-but-missed-it
- i2c-for-6.10-rc8
- i2c-for-6.10-rc7
- i2c-for-6.10-rc6
- i2c-for-6.10-rc5
- i2c-for-6.10-rc4
- i2c-for-6.10-rc3
- i2c-for-6.10-rc1
- i2c-for-6.9-rc6
- i2c-for-6.9-rc3
- i2c-for-6.9-rc2
- i2c-for-6.9-rc1-part2
- for-linus-6.9
- acpi-6.17-rc1
- acpi-6.16-rc5
- acpi-6.16-rc4
- acpi-6.16-rc3
- acpi-6.16-rc2
- acpi-6.16-rc1
- acpi-6.16-rc1-2
- acpi-6.15-rc7
- acpi-6.15-rc2
- acpi-6.15-rc1
- acpi-6.15-rc1-2
- acpi-6.14-rc6
- acpi-6.14-rc4
- acpi-6.14-rc2
- acpi-6.14-rc1
- acpi-6.14-rc1-2
- acpi-6.13-rc8
- acpi-6.13-rc7
- acpi-6.13-rc4
- acpi-6.13-rc3
- acpi-6.13-rc1
- acpi-6.13-rc1-2
- acpi-6.12-rc7
- acpi-6.12-rc6
- acpi-6.12-rc5
- acpi-6.12-rc3
- acpi-6.12-rc2
- acpi-6.12-rc1
- acpi-6.11-rc5
- acpi-6.11-rc4
- acpi-6.11-rc1
- acpi-6.10-rc8
- acpi-6.10-rc5
- acpi-6.10-rc4
- acpi-6.10-rc3
- acpi-6.10-rc1
- acpi-6.10-rc1-2
- acpi-6.9-rc6
- acpi-6.9-rc4
- acpi-6.9-rc2
- acpi-6.9-rc1-2
- Ubuntu-unstable-6.16.0-7.7
- Ubuntu-unstable-6.10.0-14.14
- Ubuntu-unstable-6.10.0-13.13
- Ubuntu-unstable-6.10.0-11.11
- Ubuntu-unstable-6.10.0-10.10
- Ubuntu-unstable-6.10.0-3.3
- Ubuntu-unstable-6.10.0-2.2
- Ubuntu-unstable-6.10.0-1.1
Stephen Boyd
authored and
Bartosz Golaszewski
committed
Feb 27, 2024
1 parent
ebb03f6
commit 0d776cf
Showing
3 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters