Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include: kernel.h: port find_closest() from Linux
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
- Loading branch information