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

Simon Glass sjg at chromium.org
Sat Mar 18 21:20:26 CET 2023


On Thu, 16 Mar 2023 at 16:17, Chris Packham <judge.packham at gmail.com> wrote:
>
> The find_closest() macro can be used to find an element in a sorted
> array that is closest to an input value.
>
> Signed-off-by: Chris Packham <judge.packham at gmail.com>
> ---
>
>  include/linux/kernel.h | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>

Good to mention the Linux version it was taken from


More information about the U-Boot mailing list