Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a67a875 authored by Nicholas Troast's avatar Nicholas Troast Committed by David Collins
Browse files

regmap: initialize dump count to 1



The count debugfs node is used to set the number of registers to read
starting at the given address. Initialize this to 1 so that data will
produce at least one entry if the count is not specified.

Change-Id: Ia0d2f5f0e145a735ab565a4530a17d83f832bb88
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
parent 3703a275
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -644,6 +644,7 @@ void regmap_debugfs_init(struct regmap *map, const char *name)

		debugfs_create_x32("address", 0600, map->debugfs,
				    &map->dump_address);
		map->dump_count = 1;
		debugfs_create_u32("count", 0600, map->debugfs,
				    &map->dump_count);
		debugfs_create_file("data", registers_mode, map->debugfs,