On Wed, Mar 27, 2024 at 03:57:55PM +0800, Seven Lee wrote: > +static const char * const nau8325_dac_oversampl[] = { > + "64", "256", "128", "", "32" }; > + > +static const struct soc_enum nau8325_dac_oversampl_enum = > + SOC_ENUM_SINGLE(NAU8325_R29_DAC_CTRL1, NAU8325_DAC_OVERSAMPLE_SFT, > + ARRAY_SIZE(nau8325_dac_oversampl), > + nau8325_dac_oversampl); This should really be a SOC_VALUE_ENUM so you can just hide the fourth value rather than having the empty (presumably invalid) option. Please send an incremental patch doing this.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH v5 2/2] ASoC: nau8325: new driver
- From: WTLI
- Re: [PATCH v5 2/2] ASoC: nau8325: new driver
- References:
- [PATCH v5 0/2] ASoC: nau8325: Modify driver code and dtschema.
- From: Seven Lee
- [PATCH v5 2/2] ASoC: nau8325: new driver
- From: Seven Lee
- [PATCH v5 0/2] ASoC: nau8325: Modify driver code and dtschema.
- Prev by Date: Re: [PATCH] ASoC: sunxi: sun4i-i2s: Enable 32-bit audio formats
- Next by Date: Re: [PATCH 19/22] rpmsg: virtio: drop owner assignment
- Previous by thread: [PATCH v5 2/2] ASoC: nau8325: new driver
- Next by thread: Re: [PATCH v5 2/2] ASoC: nau8325: new driver
- Index(es):