commit | b0a19b3767cd1cea5687064415695f8f050a0c2f | [log] [tgz] |
---|---|---|
author | Chris Packham <judge.packham@gmail.com> | Mon Mar 20 10:23:43 2023 +1300 |
committer | Tom Rini <trini@konsulko.com> | Thu Mar 30 15:09:59 2023 -0400 |
tree | 80a9d7bee027eac1f34c6d17c7ad2400d7cc87b0 | |
parent | 3098e6cdc94aba026119e17983d5566c9a9229dd [diff] |
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 <judge.packham@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>