Re: [PATCH v2 1/3] ASoC: codecs: nau8360: set val_bits to the widest register size
From: Mark Brown
Date: Wed Nov 25 2026 - 10:23:09 EST
On Wed, Nov 25, 2026 at 03:25:21PM +0200, Andy Shevchenko wrote:
> Hmm... While it works, it might be not the best approach. In cases like this
> elsewhere we create two regmaps (one per each val_bits size) and choose them
> based on the register offset.
Either approach works fine, neither is particuarly elegant - you do end
up with a bit of open coding with the register I/O functions, but
equally it causes surprises elsewhere to have multiple register maps for
the same device and that's also error prone so there's something to be
said for putting the special casing in the two functions.
Attachment:
signature.asc
Description: PGP signature