Re: [PATCH] staging: most: dim2: convert ROUND_UP_TO macro to static inline function
From: Dan Carpenter
Date: Thu Mar 05 2026 - 01:33:49 EST
On Wed, Mar 04, 2026 at 06:30:00PM -0800, Mark Adamenko wrote:
> @@ -758,7 +761,7 @@ static u8 init_ctrl_async(struct dim_channel *ch, u8 type, u8 is_tx,
> return DIM_INIT_ERR_CHANNEL_ADDRESS;
>
> if (!ch->dbr_size)
> - ch->dbr_size = ROUND_UP_TO(hw_buffer_size, DBR_BLOCK_SIZE);
> + ch->dbr_size = round_up_to(hw_buffer_size, DBR_BLOCK_SIZE);
We already have roundup() and round_up(). Use one of those.
regards,
dan carpenter