[PATCH v6 8/9] pmdomain: imx93-blk-ctrl: mask DSI and PXP PD domain register on i.MX91
Fabio Estevam
festevam at gmail.com
Mon Jun 23 05:56:31 PDT 2025
On Mon, Jun 23, 2025 at 7:00 AM Joy Zou <joy.zou at nxp.com> wrote:
> +static const struct imx93_blk_ctrl_data imx91_media_blk_ctl_dev_data = {
> + .domains = imx93_media_blk_ctl_domain_data,
> + .skip_mask = BIT(IMX93_MEDIABLK_PD_MIPI_DSI) | BIT(IMX93_MEDIABLK_PD_PXP),
> + .num_domains = ARRAY_SIZE(imx93_media_blk_ctl_domain_data),
> + .clk_names = (const char *[]){ "axi", "apb", "nic", },
> + .num_clks = 3,
Instead of hardcoding the number of clocks, what about using
ARRAY_SIZE() instead?
Like it was done here:
https://lore.kernel.org/linux-arm-kernel/20250619062108.2016511-1-xiaolei.wang@windriver.com/
More information about the linux-arm-kernel
mailing list