]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
clk: cdce925: make regmap_cdce925_bus constant
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Tue, 1 Oct 2024 09:00:11 +0000 (11:00 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 9 Oct 2024 23:11:35 +0000 (16:11 -0700)
commitd22e5f9bbb9ad60e7d3e030e006b1f05327614c5
treeede6b73f922bf8c601e89b830a2c4ab7fa14b496
parentaf6bfa97ae3dce9483d4bbeda0a2c42f6d2a14a8
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: Javier 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: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-cdce925.c