Re: [PATCH 0/2] gpiolib: minor optimization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 27, 2020 at 12:44:51PM +0100, Uwe Kleine-König wrote:
> 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(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux