Re: [PATCH v2 1/2] include: kernel.h: port find_closest() from Linux

2023-03-31 Thread Tom Rini
On Mon, Mar 20, 2023 at 10:23:43AM +1300, Chris Packham wrote: > The find_closest() macro can be used to find an element in a sorted > array that is closest to an input value. Bring in this macro from > Linux v6.3-rc1-2-g8ca09d5fa354. > > Signed-off-by: Chris Packham > Reviewed-by: Simon Glass

[PATCH v2 1/2] include: kernel.h: port find_closest() from Linux

2023-03-19 Thread Chris Packham
The find_closest() macro can be used to find an element in a sorted array that is closest to an input value. Bring in this macro from Linux v6.3-rc1-2-g8ca09d5fa354. Signed-off-by: Chris Packham Reviewed-by: Simon Glass --- Changes in v2: - Add note on which Linux version this came from - Colle