Commit d22e5f9b authored by Javier Carrasco's avatar Javier Carrasco Committed by Stephen Boyd
Browse files

clk: cdce925: make regmap_cdce925_bus constant



This struct is only used for the regmap initialization via
devm_regmap_init() (which expects a pointer to a const struct
regmap_bus, as it will not modify the struct), and it is not modified
after its declaration.

Move regmap_cdce925_bus to a read-only section.

Signed-off-by: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20241001-clk-cdce925-regmap_bus-const-v1-1-49fc11555b04@gmail.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent af6bfa97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -601,7 +601,7 @@ static int cdce925_regulator_enable(struct device *dev, const char *name)

/* The CDCE925 uses a funky way to read/write registers. Bulk mode is
 * just weird, so just use the single byte mode exclusively. */
static struct regmap_bus regmap_cdce925_bus = {
static const struct regmap_bus regmap_cdce925_bus = {
	.write = cdce925_regmap_i2c_write,
	.read = cdce925_regmap_i2c_read,
};