[FORMATTING]

Fix indentation. No code changes!

svn path=/trunk/; revision=61084
This commit is contained in:
Eric Kohl 2013-11-23 18:36:05 +00:00
parent 41ccb2555a
commit e5769b0d38
4 changed files with 181 additions and 174 deletions

View file

@ -157,7 +157,9 @@ PcmciaPower(PDEVICE_OBJECT DeviceObject,
} }
/* Report that we changed state to the Power Manager */ /* Report that we changed state to the Power Manager */
PoSetPowerState(DeviceObject, IrpSp->Parameters.Power.Type, IrpSp->Parameters.Power.State); PoSetPowerState(DeviceObject,
IrpSp->Parameters.Power.Type,
IrpSp->Parameters.Power.State);
break; break;
default: default:
@ -195,7 +197,8 @@ PcmciaAddDevice(PDRIVER_OBJECT DriverObject,
FILE_DEVICE_SECURE_OPEN, FILE_DEVICE_SECURE_OPEN,
FALSE, FALSE,
&Fdo); &Fdo);
if (!NT_SUCCESS(Status)) return Status; if (!NT_SUCCESS(Status))
return Status;
FdoExt = Fdo->DeviceExtension; FdoExt = Fdo->DeviceExtension;

View file

@ -4,7 +4,8 @@
#include <stdio.h> #include <stdio.h>
#include <ntddk.h> #include <ntddk.h>
typedef enum { typedef enum
{
dsStopped, dsStopped,
dsStarted, dsStarted,
dsPaused, dsPaused,
@ -12,7 +13,8 @@ typedef enum {
dsSurpriseRemoved dsSurpriseRemoved
} PCMCIA_DEVICE_STATE; } PCMCIA_DEVICE_STATE;
typedef struct _PCMCIA_COMMON_EXTENSION { typedef struct _PCMCIA_COMMON_EXTENSION
{
PDEVICE_OBJECT Self; PDEVICE_OBJECT Self;
BOOLEAN IsFDO; BOOLEAN IsFDO;
POWER_SEQUENCE PowerSequence; POWER_SEQUENCE PowerSequence;
@ -21,11 +23,13 @@ typedef struct _PCMCIA_COMMON_EXTENSION {
SYSTEM_POWER_STATE SystemPowerState; SYSTEM_POWER_STATE SystemPowerState;
} PCMCIA_COMMON_EXTENSION, *PPCMCIA_COMMON_EXTENSION; } PCMCIA_COMMON_EXTENSION, *PPCMCIA_COMMON_EXTENSION;
typedef struct _PCMCIA_PDO_EXTENSION { typedef struct _PCMCIA_PDO_EXTENSION
{
PCMCIA_COMMON_EXTENSION Common; PCMCIA_COMMON_EXTENSION Common;
} PCMCIA_PDO_EXTENSION, *PPCMCIA_PDO_EXTENSION; } PCMCIA_PDO_EXTENSION, *PPCMCIA_PDO_EXTENSION;
typedef struct _PCMCIA_FDO_EXTENSION { typedef struct _PCMCIA_FDO_EXTENSION
{
PCMCIA_COMMON_EXTENSION Common; PCMCIA_COMMON_EXTENSION Common;
PDEVICE_OBJECT Ldo; PDEVICE_OBJECT Ldo;
LIST_ENTRY ChildDeviceList; LIST_ENTRY ChildDeviceList;