regmap: Fix debugfs-file 'registers' mode
authorMarkus Pargmann <mpa@pengutronix.de>
Mon, 8 Sep 2014 06:43:37 +0000 (08:43 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Sep 2014 17:22:26 +0000 (18:22 +0100)
commit18c0301f9898feaac38135b2cea476bb606830e3
tree16de5ad4b420033e9ff1a761881fedb4a30e0f0f
parent2c98e0c1cc6b8e86f1978286c3d4e0769ee9d733
regmap: Fix debugfs-file 'registers' mode

The macro "REGMAP_ALLOW_WRITE_DEBUGFS" can be used to enable write
support on the registers file in the debugfs. The mode of the file is
fixed to 0400 so it is not possible to write the file ever.

This patch fixes the mode by setting it to the correct value depending
on the macro.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-debugfs.c
This page took 0.0243409999999999 seconds and 5 git commands to generate.