mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
regmap: Skip precious registers when dumping registers via debugfs
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
31244e396f
commit
2efe1642b7
3 changed files with 6 additions and 0 deletions
|
@ -56,6 +56,10 @@ static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf,
|
|||
!map->readable_reg(map->dev, i))
|
||||
continue;
|
||||
|
||||
if (map->precious_reg &&
|
||||
map->precious_reg(map->dev, i))
|
||||
continue;
|
||||
|
||||
/* If we're in the region the user is trying to read */
|
||||
if (p >= *ppos) {
|
||||
/* ...but not beyond it */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue