drivers/regulator/virtual: avoid world-writable sysfs files.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 14 May 2014 01:03:49 +0000 (10:33 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 14 May 2014 01:23:55 +0000 (10:53 +0930)
commit71e06af26cb6ed93a58a8a835d0d70191d779343
treee04269a69d977b0fd638429f4946ae8713c020b4
parent332e2b4f515953bd53ada64c2873c6e40c66986b
drivers/regulator/virtual: avoid world-writable sysfs files.

In line with practice for module parameters, we're adding a build-time
check that sysfs files aren't world-writable.

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/regulator/virtual.c