On 26/02/2024 15:01, Alexandre Mergnat wrote:
> Add Digital Micro Device Audio Interface support for MT8365 SoC.
> 
> Signed-off-by: Alexandre Mergnat <amerg...@baylibre.com>


> +
> +static int init_dmic_priv_data(struct mtk_base_afe *afe)
> +{
> +     struct mt8365_afe_private *afe_priv = afe->platform_priv;
> +     struct mt8365_dmic_data *dmic_priv;
> +     struct device_node *np = afe->dev->of_node;
> +     unsigned int temps[4];
> +     int ret;
> +
> +     dmic_priv = devm_kzalloc(afe->dev, sizeof(struct mt8365_dmic_data),
> +                               GFP_KERNEL);

You have very inconsistent style of coding. Some patches are done
correctly, some repeast known issues. All over. This is sizeof(*). This
comment (and all others) apply everywhere, just in case.

Best regards,
Krzysztof

Reply via email to