From: James Bottomley Date: Fri, 21 Mar 2008 01:47:52 +0000 (-0500) Subject: [SCSI] sysfs: make group is_valid return a mode_t X-Git-Tag: v2.6.26-rc1~1027^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f4238958d28044b335644b69df6071cdb04b5ce;p=pandora-kernel.git [SCSI] sysfs: make group is_valid return a mode_t We have a problem in scsi_transport_spi in that we need to customise not only the visibility of the attributes, but also their mode. Fix this by making the is_visible() callback return a mode, with 0 indicating is not visible. Also add a sysfs_update_group() API to allow us to change either the visibility or mode of the files at any time on the fly. Acked-by: Kay Sievers Signed-off-by: James Bottomley --- Reading git-diff-tree failed