Re: [PATCH] ASoC: stm32: sai: Use of_device_get_match_data() to simplify code
From: Mark Brown
Date: Mon May 23 2022 - 15:21:31 EST
On Mon, May 23, 2022 at 03:28:48PM +0200, Olivier MOYSAN wrote:
> The current patch requires a change in the driver.
> Either changing STM_SAI_x_ID enums, or replacing data by a struct.
> For instance:
> struct stm32_sai_comp_data {
> unsigned int id;
> }
> struct stm32_sai_comp_data stm32_sai_comp_data_a = {
> .id = STM_SAI_A_ID;
> }
> struct of_device_id stm32_sai_sub_ids[] = {
> .data = &stm32_sai_comp_data_a},
> }
Either approach works for me (or a revert for that matter).
Attachment:
signature.asc
Description: PGP signature