Alexander Amelkin 97da8c83ae
dcmi: Refactor to simplify read length calculation
Multiple functions use a very complex equation employing
division, modulo, and ternary conditionals to perform a
very simple task of finding the minimum of two values.

Replace all those equations with a call to __min() macro.

Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
2019-08-30 13:42:42 +03:00
..
2018-11-23 16:41:06 +03:00
2019-06-18 16:43:41 +03:00
2019-03-04 12:22:23 +03:00
2018-08-21 17:30:25 +03:00
2019-08-29 16:24:39 +03:00