mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 05:18:45 +02:00
regmap: sdw: Update misleading comment
In the regmap config reg_bits represents the number of address bits not the number of value bits. Correct the misleading comment which looks a lot like it suggests the register value itself is 32-bits wide. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230112171840.2098463-2-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
fe15c26ee2
commit
6466b376e9
|
|
@ -43,7 +43,7 @@ static int regmap_sdw_config_check(const struct regmap_config *config)
|
|||
if (config->val_bits != 8)
|
||||
return -ENOTSUPP;
|
||||
|
||||
/* Registers are 32 bits wide */
|
||||
/* Register addresses are 32 bits wide */
|
||||
if (config->reg_bits != 32)
|
||||
return -ENOTSUPP;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user