pinctrl: rockchip: constify mux recalced and route data arrays

The mux_recalced_data and mux_route_data arrays are never modified after
initialization. Mark them const so they can be placed in read-only
memory. Also constify the corresponding struct fields in
rockchip_pin_ctrl and local pointer variables.

This is inspired by review comments on Dmitry Yashin's earlier
RK3308B series [1].

[1] https://lore.kernel.org/all/20240515121634.23945-1-dmt.yashin@gmail.com/

Signed-off-by: Hugo VALTIER <hugo@ahdrone.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
Hugo VALTIER 2026-07-17 09:59:14 +02:00 • committed by Linus Walleij
commit 0e5d8cf3f7
2 changed files with 19 additions and 19 deletions