]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: unisys: fix CamelCase names in struct sense_data
authorBenjamin Romer <benjamin.romer@unisys.com>
Thu, 23 Oct 2014 18:31:00 +0000 (14:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:14 +0000 (10:33 +0800)
Fix CamelCase names:

ErrorCode => error_code
Valid => valid
SegmentNumber => segment_number
SenseKey => sense_key
Reserved => reserved
IncorrectLength => incorrect_length
EndOfMedia => end_of_media
FileMark => file_mark
Information => information
AdditionalSenseLength => additional_sense_length
CommandSpecificInformation => commmand_specific_information
AdditionalSenseCode => additional_sense_code
AdditionalSenseCodeQualifier => additional_sense_code_qualifier
FieldReplaceableUnitCode => fru_code
SenseKeySpecific => sense_key_specific

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/common-spar/include/channels/iochannel.h
drivers/staging/unisys/virthba/virthba.c

index 3256ff5268593acb162b59044c708c3cff50d2fc..1ebaa5b66eb9488f4e1e725520357c7f98788e63 100644 (file)
@@ -410,21 +410,21 @@ struct uiscmdrsp_scsi {
 * AdditionalSenseLength                contains will be sizeof(sense_data)-8=10.
 */
 struct sense_data {
-       u8 ErrorCode:7;
-       u8 Valid:1;
-       u8 SegmentNumber;
-       u8 SenseKey:4;
-       u8 Reserved:1;
-       u8 IncorrectLength:1;
-       u8 EndOfMedia:1;
-       u8 FileMark:1;
-       u8 Information[4];
-       u8 AdditionalSenseLength;
-       u8 CommandSpecificInformation[4];
-       u8 AdditionalSenseCode;
-       u8 AdditionalSenseCodeQualifier;
-       u8 FieldReplaceableUnitCode;
-       u8 SenseKeySpecific[3];
+       u8 errorcode:7;
+       u8 valid:1;
+       u8 segment_number;
+       u8 sense_key:4;
+       u8 reserved:1;
+       u8 incorrect_length:1;
+       u8 end_of_media:1;
+       u8 file_mark:1;
+       u8 information[4];
+       u8 additional_sense_length;
+       u8 command_specific_information[4];
+       u8 additional_sense_code;
+       u8 additional_sense_code_qualifier;
+       u8 fru_code;
+       u8 sense_key_specific[3];
 };
 
 /* some SCSI ADSENSE codes */
index 1e921f0f596d01c8446e9684b2540fcc861da481..a3ea0871664ba8e80b212cdab8c39025162bf7f7 100644 (file)
@@ -1143,9 +1143,9 @@ do_scsi_linuxstat(struct uiscmdrsp *cmdrsp, struct scsi_cmnd *scsicmd)
                               scsicmd, cmdrsp->scsi.cmnd[0],
                               scsidev->host->host_no, scsidev->id,
                               scsidev->channel, scsidev->lun,
-                              cmdrsp->scsi.linuxstat, sd->Valid, sd->SenseKey,
-                              sd->AdditionalSenseCode,
-                              sd->AdditionalSenseCodeQualifier);
+                              cmdrsp->scsi.linuxstat, sd->valid, sd->sense_key,
+                              sd->additional_sense_code,
+                              sd->additional_sense_code_qualifier);
                        if (atomic_read(&vdisk->error_count) ==
                            VIRTHBA_ERROR_COUNT) {
                                LOGERR("Throtling SCSICMD errors disk <%d:%d:%d:%llu>\n",