drm/tegra: sor: Move register definitions into a table
authorThierry Reding <treding@nvidia.com>
Fri, 10 Nov 2017 11:21:51 +0000 (12:21 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 13 Dec 2017 12:42:06 +0000 (13:42 +0100)
commit062f5b2c423ce6069b385745153938cf74013d4a
treec103c95d209d92aee90103344f53841447c81164
parentfbfe16df30817a9d62dfb2633121068361fb7721
drm/tegra: sor: Move register definitions into a table

After commit 932f6529139e ("drm/tegra: sor: Trace register accesses"),
the debugfs register dump implementation causes excessive stack usage
and can result in build warnings. To fix this, move the register
definitions into a table and iterate over the table while dumping the
registers to debugfs.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c