From: Robin Getz Date: Tue, 2 Jun 2009 07:00:47 +0000 (-0400) Subject: debugfs: use specified mode to possibly mark files read/write only X-Git-Tag: v2.6.31-rc1~305^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4792aa30f9d33584d7192685ed149cc5fee737f;p=pandora-kernel.git debugfs: use specified mode to possibly mark files read/write only In many SoC implementations there are hardware registers can be read or write only. This extends the debugfs to enforce the file permissions for these types of registers by providing a set of fops which are read or write only. This assumes that the kernel developer knows more about the hardware than the user (even root users) -- which is normally true. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed