Commit 7329b07
committed
gpio: sim: fix the chip_name configfs item
The chip_name configs attribute always displays the device name of the
first GPIO bank because the logic of the relevant function is simply
wrong.
Fix it by correctly comparing the bank's swnode against the GPIO
device's children.
Fixes: cb8c474 ("gpio: sim: new testing module")
Cc: stable@vger.kernel.org
Reported-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
Tested-by: Kent Gibson <warthog618@gmail.com>1 parent 3234649 commit 7329b07
1 file changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
| 994 | + | |
995 | 995 | | |
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
1001 | | - | |
1002 | | - | |
1003 | 1001 | | |
1004 | 1002 | | |
1005 | 1003 | | |
1006 | 1004 | | |
1007 | 1005 | | |
1008 | | - | |
| 1006 | + | |
| 1007 | + | |
1009 | 1008 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
| 1009 | + | |
1016 | 1010 | | |
1017 | 1011 | | |
1018 | 1012 | | |
1019 | 1013 | | |
1020 | 1014 | | |
1021 | 1015 | | |
1022 | 1016 | | |
1023 | | - | |
| 1017 | + | |
1024 | 1018 | | |
1025 | 1019 | | |
1026 | 1020 | | |
| |||
0 commit comments