Skip to content

Commit

Permalink
regmap: sdw: Update misleading comment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Charles Keepax authored and Mark Brown committed Mar 5, 2023
1 parent fe15c26 commit 6466b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/regmap/regmap-sdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6466b37

Please sign in to comment.