diff options
| author | Chris Packham <[email protected]> | 2023-03-20 10:23:43 +1300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-03-30 15:09:59 -0400 |
| commit | b5f045e12fea0a64a3749c4da1bdfd579530b67e (patch) | |
| tree | 80a9d7bee027eac1f34c6d17c7ad2400d7cc87b0 /drivers/rtc | |
| parent | d87bdb82eae66512c222fd93280acaf4dd1cd4be (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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions
