[PATCH 05/13] drm/i915/dmc_wl: Use sentinel item for range tables
Luca Coelho
luca at coelho.fi
Fri Nov 1 12:25:24 UTC 2024
On Mon, 2024-10-21 at 19:27 -0300, Gustavo Sousa wrote:
> We are currently using ARRAY_SIZE() to iterate address ranges in
> intel_dmc_wl_check_range(). In upcoming changes, we will be using more
> than a single table and will extract the range checking logic into a
> dedicated function that takes a range table as argument. As we will not
> able to use ARRAY_SIZE() then, let's make range tables contain a
> sentinel item at the end and use that instead of having to pass the size
> as parameter in this future function.
>
> Signed-off-by: Gustavo Sousa <gustavo.sousa at intel.com>
> ---
Reviewed-by: Luca Coelho <luciano.coelho at intel.com>
--
Cheers,
Luca.
More information about the Intel-xe
mailing list