diff options
author | Laszlo Ersek <lersek@redhat.com> | 2015-09-22 11:18:09 +0000 |
---|---|---|
committer | lersek <lersek@Edk2> | 2015-09-22 11:18:09 +0000 |
commit | d80e8c459ab29d198a4718bec9fd77d3fa2db1ee (patch) | |
tree | d5d68ac772ee8cead797b816f5c2697275768f70 | |
parent | 8cfd008ef8da26d97314816e0635691955d475d5 (diff) | |
download | edk2-d80e8c459ab29d198a4718bec9fd77d3fa2db1ee.tar.gz edk2-d80e8c459ab29d198a4718bec9fd77d3fa2db1ee.tar.bz2 edk2-d80e8c459ab29d198a4718bec9fd77d3fa2db1ee.zip |
DuetPkg: SataControllerDxe: fix typo in "DisqulifiedModes"
Cc: Alexander Graf <agraf@suse.de>
Cc: Reza Jelveh <reza.jelveh@tuhh.de>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Gabriel L. Somlo <somlo@cmu.edu>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Tested-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18524 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | DuetPkg/SataControllerDxe/SataController.c | 22 | ||||
-rw-r--r-- | DuetPkg/SataControllerDxe/SataController.h | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/DuetPkg/SataControllerDxe/SataController.c b/DuetPkg/SataControllerDxe/SataController.c index 1807c88224..e78915ad31 100644 --- a/DuetPkg/SataControllerDxe/SataController.c +++ b/DuetPkg/SataControllerDxe/SataController.c @@ -464,8 +464,8 @@ SataControllerStart ( }
ChannelDeviceCount = (UINTN) (SataPrivateData->IdeInit.ChannelCount) * (UINTN) (SataPrivateData->DeviceCount);
- SataPrivateData->DisqulifiedModes = AllocateZeroPool ((sizeof (EFI_ATA_COLLECTIVE_MODE)) * ChannelDeviceCount);
- if (SataPrivateData->DisqulifiedModes == NULL) {
+ SataPrivateData->DisqualifiedModes = AllocateZeroPool ((sizeof (EFI_ATA_COLLECTIVE_MODE)) * ChannelDeviceCount);
+ if (SataPrivateData->DisqualifiedModes == NULL) {
Status = EFI_OUT_OF_RESOURCES;
goto Done;
}
@@ -502,8 +502,8 @@ Done: Controller
);
if (SataPrivateData != NULL) {
- if (SataPrivateData->DisqulifiedModes != NULL) {
- FreePool (SataPrivateData->DisqulifiedModes);
+ if (SataPrivateData->DisqualifiedModes != NULL) {
+ FreePool (SataPrivateData->DisqualifiedModes);
}
if (SataPrivateData->IdentifyData != NULL) {
FreePool (SataPrivateData->IdentifyData);
@@ -577,8 +577,8 @@ SataControllerStop ( }
if (SataPrivateData != NULL) {
- if (SataPrivateData->DisqulifiedModes != NULL) {
- FreePool (SataPrivateData->DisqulifiedModes);
+ if (SataPrivateData->DisqualifiedModes != NULL) {
+ FreePool (SataPrivateData->DisqualifiedModes);
}
if (SataPrivateData->IdentifyData != NULL) {
FreePool (SataPrivateData->IdentifyData);
@@ -833,7 +833,7 @@ IdeInitDisqualifyMode ( // if a mode is not supported, the modes higher than it is also not supported.
//
CopyMem (
- &(SataPrivateData->DisqulifiedModes[Channel * Device]),
+ &(SataPrivateData->DisqualifiedModes[Channel * Device]),
BadModes,
sizeof (EFI_ATA_COLLECTIVE_MODE)
);
@@ -907,7 +907,7 @@ IdeInitCalculateMode ( EFI_SATA_CONTROLLER_PRIVATE_DATA *SataPrivateData;
EFI_IDENTIFY_DATA *IdentifyData;
BOOLEAN IdentifyValid;
- EFI_ATA_COLLECTIVE_MODE *DisqulifiedModes;
+ EFI_ATA_COLLECTIVE_MODE *DisqualifiedModes;
UINT16 SelectedMode;
EFI_STATUS Status;
@@ -926,7 +926,7 @@ IdeInitCalculateMode ( IdentifyData = &(SataPrivateData->IdentifyData[Channel * Device]);
IdentifyValid = SataPrivateData->IdentifyValid[Channel * Device];
- DisqulifiedModes = &(SataPrivateData->DisqulifiedModes[Channel * Device]);
+ DisqualifiedModes = &(SataPrivateData->DisqualifiedModes[Channel * Device]);
//
// Make sure we've got the valid identify data of the device from SubmitData()
@@ -938,7 +938,7 @@ IdeInitCalculateMode ( Status = CalculateBestPioMode (
IdentifyData,
- (DisqulifiedModes->PioMode.Valid ? ((UINT16 *) &(DisqulifiedModes->PioMode.Mode)) : NULL),
+ (DisqualifiedModes->PioMode.Valid ? ((UINT16 *) &(DisqualifiedModes->PioMode.Mode)) : NULL),
&SelectedMode
);
if (!EFI_ERROR (Status)) {
@@ -952,7 +952,7 @@ IdeInitCalculateMode ( Status = CalculateBestUdmaMode (
IdentifyData,
- (DisqulifiedModes->UdmaMode.Valid ? ((UINT16 *) &(DisqulifiedModes->UdmaMode.Mode)) : NULL),
+ (DisqualifiedModes->UdmaMode.Valid ? ((UINT16 *) &(DisqualifiedModes->UdmaMode.Mode)) : NULL),
&SelectedMode
);
diff --git a/DuetPkg/SataControllerDxe/SataController.h b/DuetPkg/SataControllerDxe/SataController.h index d2a929f3b4..a6c6c168df 100644 --- a/DuetPkg/SataControllerDxe/SataController.h +++ b/DuetPkg/SataControllerDxe/SataController.h @@ -95,7 +95,7 @@ typedef struct _EFI_SATA_CONTROLLER_PRIVATE_DATA { // From ATA/ATAPI spec, if a mode is not supported,
// the modes higher than it is also not supported
//
- EFI_ATA_COLLECTIVE_MODE *DisqulifiedModes;
+ EFI_ATA_COLLECTIVE_MODE *DisqualifiedModes;
//
// A copy of EFI_IDENTIFY_DATA data for each attached SATA device and its flag
|