]> git.baikalelectronics.ru Git - kernel.git/commit
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, 8 Sep 2014 11:16:19 +0000 (12:16 +0100)
commitc3b75e25a73e865170146db03a4add69d3677ede
treef1e7f9552f32c3412a6b7e27606a72e79fbebbd2
parentca09702717581356bb91e5bbfbb244eda384a004
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