]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: sysfs_chmod_file's attr can be const
authorJean Delvare <khali@linux-fr.org>
Fri, 2 Jul 2010 14:54:05 +0000 (16:54 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 5 Aug 2010 20:53:34 +0000 (13:53 -0700)
commit8d37d8b0812f026babcbad16233be47156f98421
treec514cf3270a81a199bac36feee020a98d05db9c5
parenteb4419a4599ff3bf1bdc7b05b0a83d14d9b6607c
sysfs: sysfs_chmod_file's attr can be const

sysfs_chmod_file doesn't change the attribute it operates on, so this
attribute can be marked const.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/file.c
include/linux/sysfs.h