Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 121b567d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown
Browse files

regulator: fan53555: Constify struct regmap_config and slew_rates array



The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const. Make const also
slew_rates array.

Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 97bf6af1
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -147,7 +147,7 @@ static unsigned int fan53555_get_mode(struct regulator_dev *rdev)
		return REGULATOR_MODE_NORMAL;
		return REGULATOR_MODE_NORMAL;
}
}


static int slew_rates[] = {
static const int slew_rates[] = {
	64000,
	64000,
	32000,
	32000,
	16000,
	16000,
@@ -296,7 +296,7 @@ static int fan53555_regulator_register(struct fan53555_device_info *di,
	return PTR_ERR_OR_ZERO(di->rdev);
	return PTR_ERR_OR_ZERO(di->rdev);
}
}


static struct regmap_config fan53555_regmap_config = {
static const struct regmap_config fan53555_regmap_config = {
	.reg_bits = 8,
	.reg_bits = 8,
	.val_bits = 8,
	.val_bits = 8,
};
};