Skip to content

Commit af23348

Browse files
matthew-gerlachRuss Weight
authored andcommitted
DEBUG WARNING enable debugfs writing of regmap registers
Enable writing via debugfs to regmap registers by defining the necessary macro. This change is potentially dangerous and is intended for development only and not recommended for production deployment. Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
1 parent 5a46383 commit af23348

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/regmap/regmap-debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf,
290290
count, ppos);
291291
}
292292

293-
#undef REGMAP_ALLOW_WRITE_DEBUGFS
293+
#define REGMAP_ALLOW_WRITE_DEBUGFS
294294
#ifdef REGMAP_ALLOW_WRITE_DEBUGFS
295295
/*
296296
* This can be dangerous especially when we have clients such as

0 commit comments

Comments
 (0)