linux-kernel-test/drivers/scsi/qla2xxx
Zhang Rui 91a6902958 sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes
Well, first of all, I don't want to change so many files either.

What I do:
Adding a new parameter "struct bin_attribute *" in the
.read/.write methods for the sysfs binary attributes.

In fact, only the four lines change in fs/sysfs/bin.c and
include/linux/sysfs.h do the real work.
But I have to update all the files that use binary attributes
to make them compatible with the new .read and .write methods.
I'm not sure if I missed any. :(

Why I do this:
For a sysfs attribute, we can get a pointer pointing to the
struct attribute in the .show/.store method,
while we can't do this for the binary attributes.
I don't know why this is different, but this does make it not
so handy to use the binary attributes as the regular ones.
So I think this patch is reasonable. :)

Who benefits from it:
The patch that exposes ACPI tables in sysfs
requires such an improvement.
All the table binary attributes share the same .read method.
Parameter "struct bin_attribute *" is used to get
the table signature and instance number which are used to
distinguish different ACPI table binary attributes.

Without this parameter, we need to offer different .read methods
for different ACPI table binary attributes.
This is impossible as there are various ACPI tables on different
platforms, and we don't know what they are until they are loaded.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-07-11 16:09:09 -07:00
..
Kconfig [SCSI] qla2xxx: Remove obsolete firmware-loader-module support. 2006-05-20 09:49:13 -05:00
Makefile [SCSI] qla2xxx: Remove obsolete firmware-loader-module support. 2006-05-20 09:49:13 -05:00
qla_attr.c sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes 2007-07-11 16:09:09 -07:00
qla_dbg.c [SCSI] qla2xxx: Rework firmware-trace facilities. 2006-06-26 16:20:44 -05:00
qla_dbg.h [SCSI] Maintain module-parameter name consistency with qla2xxx/qla4xxx. 2006-10-25 15:12:17 -07:00
qla_def.h [SCSI] qla2xxx: fix RSCN handling on big-endian systems 2007-03-20 10:49:40 -05:00
qla_devtbl.h [SCSI] qla2xxx: Resync with latest HBA SSID specification -- 2.2j. 2006-06-26 16:21:25 -05:00
qla_fw.h [SCSI] qla2xxx: Correctly set the firmware NOS/OLS timeout during initialization. 2006-06-26 16:25:34 -05:00
qla_gbl.h Merge branch 'linus' 2007-01-31 11:24:00 -06:00
qla_gs.c [SCSI] qla2xxx: Detect GPSC capabilities within a fabric. 2007-01-03 16:57:54 -06:00
qla_init.c Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 2007-05-08 20:32:43 -07:00
qla_inline.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
qla_iocb.c [SCSI] qla2xxx: Correct endianess problem while issuing a Marker IOCB on ISP24xx. 2006-08-06 11:29:45 -05:00
qla_isr.c [SCSI] qla2xxx: Add MSI support. 2007-05-08 11:21:45 -05:00
qla_mbx.c [SCSI] qla2xxx: fix for byteswap in fc_host fabric_name 2007-04-01 10:03:00 -05:00
qla_os.c [SCSI] qla2xxx: fix timeout in qla2x00_down_timeout 2007-05-30 10:15:32 -05:00
qla_settings.h [SCSI] qla2xxx: Drop unused driver cruft. 2006-05-20 09:43:22 -05:00
qla_sup.c [SCSI] qla2xxx: Drop acquisition of hardware_lock during flash manipulations. 2007-03-20 10:50:50 -05:00
qla_version.h [SCSI] qla2xxx: Update version number to 8.01.07-k7. 2007-05-08 11:21:59 -05:00