From: Charles Keepax Date: Thu, 12 Jan 2023 17:18:39 +0000 (+0000) Subject: regmap: sdw: Update misleading comment X-Git-Tag: kvm-6.4-2~121^2~17^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6466b376e927d51ea3eadc1965714305d8c3c066;p=users%2Fdwmw2%2Flinux.git 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 Link: https://lore.kernel.org/r/20230112171840.2098463-2-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/regmap-sdw.c b/drivers/base/regmap/regmap-sdw.c index 81b0327f719d8..95801fd411b26 100644 --- a/drivers/base/regmap/regmap-sdw.c +++ b/drivers/base/regmap/regmap-sdw.c @@ -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;