On Mon, Jun 17, 2024 at 02:01:02PM -0500, Paul Handrigan wrote: > +static bool cs530x_volatile_register(struct device *dev, unsigned int reg) > +{ > + switch (reg) { > + case CS530X_DEVID: > + case CS530X_REVID: > + return true; > + default: > + return false; > + } > +} Are these really volatile? I would expect them to have no defaults so they must be read from the device, but once read I'd expect we could cache the values. Otherwise this looks good.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH v3 2/2] ASoC: cs530x: Support for cs530x ADCs
- From: Richard Fitzgerald
- Re: [PATCH v3 2/2] ASoC: cs530x: Support for cs530x ADCs
- References:
- [PATCH v3 1/2] ASoC: dt-bindings: cirrus,cs530x: Add initial DT binding
- From: Paul Handrigan
- [PATCH v3 2/2] ASoC: cs530x: Support for cs530x ADCs
- From: Paul Handrigan
- [PATCH v3 1/2] ASoC: dt-bindings: cirrus,cs530x: Add initial DT binding
- Prev by Date: [PATCH] sound:rk817 reduce memmory leak chance with __free
- Next by Date: Re: [PATCH v2 1/2] ASoC: soc-dai.h: Constify DAI ops auto_selectable_formats
- Previous by thread: [PATCH v3 2/2] ASoC: cs530x: Support for cs530x ADCs
- Next by thread: Re: [PATCH v3 2/2] ASoC: cs530x: Support for cs530x ADCs
- Index(es):