spi: hisi-kunpeng: Add debugfs support
authorJay Fang <f.fangjian@huawei.com>
Fri, 4 Jun 2021 06:55:18 +0000 (14:55 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jun 2021 15:24:12 +0000 (16:24 +0100)
commit2b2142f247ebeef74aaadc1a646261c19627fd7e
treeb342cf64cb1d8d60e9c7561a5bef704234c07752
parent6829222b408f5aa5222c18ea3f492cac19fa9405
spi: hisi-kunpeng: Add debugfs support

This patch uses debugfs_regset32 interface to create the registers dump
file. Use it instead of creating a generic debugfs file with manually
written read callback function.

With these entries, users can check all the SPI controller registers
during run time.

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1622789718-13977-1-git-send-email-f.fangjian@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-hisi-kunpeng.c