sys: util: migrate all files to DIV_ROUND_UP

ceiling_fraction is deprecated, use DIV_ROUND_UP.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-11-23 09:55:08 +01:00 committed by Carles Cufí
commit 0ebe14beb4
54 changed files with 99 additions and 99 deletions

View file

@ -141,7 +141,7 @@ static bool copy_to_pbuffer(struct mpsc_pbuf_buffer *mpsc_buffer,
*/
uint8_t *dst_data = (uint8_t *)dst + sizeof(struct mpsc_pbuf_hdr);
uint8_t *src_data = (uint8_t *)msg + sizeof(struct mpsc_pbuf_hdr);
size_t hdr_wlen = ceiling_fraction(sizeof(struct mpsc_pbuf_hdr),
size_t hdr_wlen = DIV_ROUND_UP(sizeof(struct mpsc_pbuf_hdr),
sizeof(uint32_t));
dst->hdr.data = msg->buf.hdr.data;