From: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Hello, while working on gpiolib I noticed that gpio_request_one() repeatedly checks the validity of the gpio_info obtained by gpio_to_desc(). This series introduces some helper functions (prefixed gpioinfo_) that take an gpio_info instead of a plain gpio number and assume this pointer to be valid. The saved runtime is probably too small to measure, so I didn't even try. Semantically there is no change intended. Best regards Uwe Uwe Kleine-König (2): gpiolib: reorder functions gpiolib: introduce helper functions working on gpio_info structs drivers/gpio/gpiolib.c | 243 +++++++++++++++++++++++++---------------- 1 file changed, 150 insertions(+), 93 deletions(-) -- 2.24.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox