https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b905c40d2ec7b29119c9d…
commit b905c40d2ec7b29119c9d52086d0b14ac709a701
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sat Mar 21 13:39:20 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Sun Mar 22 14:29:38 2020 +0100
[ISAPNP] Fix some indentation
---
drivers/bus/isapnp/hardware.c | 10 ++---
drivers/bus/isapnp/isapnp.c | 90 +++++++++++++++++++++----------------------
drivers/bus/isapnp/pdo.c | 22 +++++------
3 files changed, 61 insertions(+), 61 deletions(-)
diff --git a/drivers/bus/isapnp/hardware.c b/drivers/bus/isapnp/hardware.c
index 4a3d49bb1e7..53b71b78abb 100644
--- a/drivers/bus/isapnp/hardware.c
+++ b/drivers/bus/isapnp/hardware.c
@@ -536,7 +536,7 @@ ProbeIsaPnpBus(
NTSTATUS
NTAPI
IsaHwTryReadDataPort(
- IN PUCHAR ReadDataPort)
+ IN PUCHAR ReadDataPort)
{
return TryIsolate(ReadDataPort) > 0 ? STATUS_SUCCESS :
STATUS_INSUFFICIENT_RESOURCES;
}
@@ -544,12 +544,12 @@ IsaHwTryReadDataPort(
NTSTATUS
NTAPI
IsaHwActivateDevice(
- IN PISAPNP_LOGICAL_DEVICE LogicalDevice)
+ IN PISAPNP_LOGICAL_DEVICE LogicalDevice)
{
- DeviceActivation(LogicalDevice,
- TRUE);
+ DeviceActivation(LogicalDevice,
+ TRUE);
- return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
NTSTATUS
diff --git a/drivers/bus/isapnp/isapnp.c b/drivers/bus/isapnp/isapnp.c
index 69fbcbb9f3a..35f5041d904 100644
--- a/drivers/bus/isapnp/isapnp.c
+++ b/drivers/bus/isapnp/isapnp.c
@@ -61,7 +61,7 @@ static
NTSTATUS
NTAPI
IsaFdoCreateDeviceIDs(
- IN PISAPNP_PDO_EXTENSION PdoExt)
+ IN PISAPNP_PDO_EXTENSION PdoExt)
{
PISAPNP_LOGICAL_DEVICE LogDev = PdoExt->IsaPnpDevice;
UNICODE_STRING TempString;
@@ -139,9 +139,9 @@ IsaFdoCreateDeviceIDs(
NTSTATUS
NTAPI
IsaPnpFillDeviceRelations(
- IN PISAPNP_FDO_EXTENSION FdoExt,
- IN PIRP Irp,
- IN BOOLEAN IncludeDataPort)
+ IN PISAPNP_FDO_EXTENSION FdoExt,
+ IN PIRP Irp,
+ IN BOOLEAN IncludeDataPort)
{
PISAPNP_PDO_EXTENSION PdoExt;
NTSTATUS Status = STATUS_SUCCESS;
@@ -333,47 +333,47 @@ NTSTATUS
NTAPI
IsaPnpCreateReadPortDO(PISAPNP_FDO_EXTENSION FdoExt)
{
- UNICODE_STRING DeviceID = RTL_CONSTANT_STRING(L"ISAPNP\\ReadDataPort\0");
- UNICODE_STRING HardwareIDs =
RTL_CONSTANT_STRING(L"ISAPNP\\ReadDataPort\0\0");
- UNICODE_STRING InstanceID = RTL_CONSTANT_STRING(L"0\0");
- PISAPNP_PDO_EXTENSION PdoExt;
-
- NTSTATUS Status;
- Status = IoCreateDevice(FdoExt->DriverObject,
- sizeof(ISAPNP_PDO_EXTENSION),
- NULL,
- FILE_DEVICE_CONTROLLER,
- FILE_DEVICE_SECURE_OPEN,
- FALSE,
- &FdoExt->DataPortPdo);
- if (!NT_SUCCESS(Status))
- return Status;
- PdoExt = (PISAPNP_PDO_EXTENSION)FdoExt->DataPortPdo->DeviceExtension;
- RtlZeroMemory(PdoExt, sizeof(ISAPNP_PDO_EXTENSION));
- PdoExt->Common.IsFdo = FALSE;
- PdoExt->Common.Self = FdoExt->DataPortPdo;
- PdoExt->Common.State = dsStopped;
- PdoExt->FdoExt = FdoExt;
-
- Status = IsaPnpDuplicateUnicodeString(0,
- &DeviceID,
- &PdoExt->DeviceID);
- if (!NT_SUCCESS(Status))
- return Status;
-
- Status = IsaPnpDuplicateUnicodeString(0,
- &HardwareIDs,
- &PdoExt->HardwareIDs);
- if (!NT_SUCCESS(Status))
- return Status;
-
- Status = IsaPnpDuplicateUnicodeString(0,
- &InstanceID,
- &PdoExt->InstanceID);
- if (!NT_SUCCESS(Status))
- return Status;
-
- return Status;
+ UNICODE_STRING DeviceID = RTL_CONSTANT_STRING(L"ISAPNP\\ReadDataPort\0");
+ UNICODE_STRING HardwareIDs =
RTL_CONSTANT_STRING(L"ISAPNP\\ReadDataPort\0\0");
+ UNICODE_STRING InstanceID = RTL_CONSTANT_STRING(L"0\0");
+ PISAPNP_PDO_EXTENSION PdoExt;
+
+ NTSTATUS Status;
+ Status = IoCreateDevice(FdoExt->DriverObject,
+ sizeof(ISAPNP_PDO_EXTENSION),
+ NULL,
+ FILE_DEVICE_CONTROLLER,
+ FILE_DEVICE_SECURE_OPEN,
+ FALSE,
+ &FdoExt->DataPortPdo);
+ if (!NT_SUCCESS(Status))
+ return Status;
+ PdoExt = (PISAPNP_PDO_EXTENSION)FdoExt->DataPortPdo->DeviceExtension;
+ RtlZeroMemory(PdoExt, sizeof(ISAPNP_PDO_EXTENSION));
+ PdoExt->Common.IsFdo = FALSE;
+ PdoExt->Common.Self = FdoExt->DataPortPdo;
+ PdoExt->Common.State = dsStopped;
+ PdoExt->FdoExt = FdoExt;
+
+ Status = IsaPnpDuplicateUnicodeString(0,
+ &DeviceID,
+ &PdoExt->DeviceID);
+ if (!NT_SUCCESS(Status))
+ return Status;
+
+ Status = IsaPnpDuplicateUnicodeString(0,
+ &HardwareIDs,
+ &PdoExt->HardwareIDs);
+ if (!NT_SUCCESS(Status))
+ return Status;
+
+ Status = IsaPnpDuplicateUnicodeString(0,
+ &InstanceID,
+ &PdoExt->InstanceID);
+ if (!NT_SUCCESS(Status))
+ return Status;
+
+ return Status;
}
static
diff --git a/drivers/bus/isapnp/pdo.c b/drivers/bus/isapnp/pdo.c
index 917ab4d626d..5d601c985ee 100644
--- a/drivers/bus/isapnp/pdo.c
+++ b/drivers/bus/isapnp/pdo.c
@@ -78,9 +78,9 @@ IsaPdoQueryCapabilities(
NTSTATUS
NTAPI
IsaPdoQueryPnpDeviceState(
- IN PISAPNP_PDO_EXTENSION PdoExt,
- IN PIRP Irp,
- IN PIO_STACK_LOCATION IrpSp)
+ IN PISAPNP_PDO_EXTENSION PdoExt,
+ IN PIRP Irp,
+ IN PIO_STACK_LOCATION IrpSp)
{
Irp->IoStatus.Information |= PNP_DEVICE_NOT_DISABLEABLE;
return STATUS_SUCCESS;
@@ -137,9 +137,9 @@ IsaPdoQueryId(
NTSTATUS
NTAPI
IsaPdoQueryResources(
- IN PISAPNP_PDO_EXTENSION PdoExt,
- IN PIRP Irp,
- IN PIO_STACK_LOCATION IrpSp)
+ IN PISAPNP_PDO_EXTENSION PdoExt,
+ IN PIRP Irp,
+ IN PIO_STACK_LOCATION IrpSp)
{
USHORT Ports[] = { ISAPNP_WRITE_DATA, ISAPNP_ADDRESS };
ULONG ListSize, i;
@@ -176,9 +176,9 @@ IsaPdoQueryResources(
NTSTATUS
NTAPI
IsaPdoQueryResourceRequirements(
- IN PISAPNP_PDO_EXTENSION PdoExt,
- IN PIRP Irp,
- IN PIO_STACK_LOCATION IrpSp)
+ IN PISAPNP_PDO_EXTENSION PdoExt,
+ IN PIRP Irp,
+ IN PIO_STACK_LOCATION IrpSp)
{
USHORT Ports[] = { ISAPNP_WRITE_DATA, ISAPNP_ADDRESS, 0x274, 0x3e4, 0x204, 0x2e4,
0x354, 0x2f4 };
ULONG ListSize, i;
@@ -228,8 +228,8 @@ static
NTSTATUS
NTAPI
IsaPdoStartReadPort(
- IN PISAPNP_FDO_EXTENSION FdoExt,
- IN PIO_STACK_LOCATION IrpSp)
+ IN PISAPNP_FDO_EXTENSION FdoExt,
+ IN PIO_STACK_LOCATION IrpSp)
{
PCM_RESOURCE_LIST ResourceList =
IrpSp->Parameters.StartDevice.AllocatedResources;
NTSTATUS Status;