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

2023-03-16 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. Signed-off-by: Chris Packham --- include/linux/kernel.h | 24 1 file changed, 24 insertions(+) diff --git a/include/linux/kernel.h b/include/linux/kernel.h inde

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

2023-03-18 Thread Simon Glass
On Thu, 16 Mar 2023 at 16:17, 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. > > Signed-off-by: Chris Packham > --- > > include/linux/kernel.h | 24 > 1 file changed, 24 insertions(+