diff options
author | Andy Yan <andy.yan@rock-chips.com> | 2025-02-18 19:27:28 +0800 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2025-03-02 19:32:00 +0100 |
commit | ff0b6c031ed3ed31024618340c795523a86e6688 (patch) | |
tree | 2d16ad3ad28538a95faf46c123c249d9ff7d5ce4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2800028d5bdee8e9a3cda2fec782dadc32225d8d (diff) |
drm/rockchip: vop2: use devm_regmap_field_alloc for cluster-regs
Right now vop2_cluster_init() copies the base vop2_cluster_regs
and adapts the reg value with the current window's offset before
adding the fields to the regmap.
This conflicts with the notion of reg_fields being const, see
https://lore.kernel.org/all/20240706-regmap-const-structs-v1-1-d08c776da787@weissschuh.net/
for reference, which now causes checkpatch to actually warn about that.
So instead of creating one big copy and changing it afterwards,
add the reg_fields individually using devm_regmap_field_alloc().
Functional it is the same, just that the reg_field we're handling
can stay const.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20250218112744.34433-2-andyshrk@163.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions