regmap: Cache register and value sizes for debugfs

No point in calculating them every time.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Mark Brown
2012-12-06 13:29:05 +09:00
parent 1a61cfe344
commit cbc1938bad
2 changed files with 18 additions and 10 deletions

View File

@@ -50,6 +50,10 @@ struct regmap {
#ifdef CONFIG_DEBUG_FS
struct dentry *debugfs;
const char *debugfs_name;
unsigned int debugfs_reg_len;
unsigned int debugfs_val_len;
unsigned int debugfs_tot_len;
#endif
unsigned int max_register;