Bartosz Golaszewski c162ca0bcb gpio: sim: fix hogs with custom chip labels
We always assign the default device name as the chip_label in hog
structures which makes it impossible to assign hogs to chips. Let's
first check if a custom label was set and then copy it instead of the
default device name.

Fixes: cb8c474e79be ("gpio: sim: new testing module")
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
2022-02-09 11:41:29 +01:00
..
2022-01-11 12:31:35 -08:00
2021-04-14 10:19:22 +01:00
2021-05-05 16:07:41 +02:00
2019-09-03 16:04:19 +02:00
2021-11-08 11:55:21 -08:00
2019-11-07 09:27:48 +01:00
2021-12-13 13:29:09 +02:00
2021-08-29 21:19:50 +02:00
2021-11-08 11:55:21 -08:00
2022-01-14 18:50:52 -05:00
2019-12-09 10:40:18 +01:00
2022-01-11 12:31:35 -08:00
2022-01-11 12:31:35 -08:00