File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -724,8 +724,8 @@ CmBattIoctl(IN PDEVICE_OBJECT DeviceObject,
724724 if (InputBufferLength == sizeof (ULONG ))
725725 {
726726 /* Query it */
727- Status = CmBattSetTripPpoint (DeviceExtension ,
728- * (PULONG )Irp -> AssociatedIrp .SystemBuffer );
727+ Status = CmBattSetTripPoint (DeviceExtension ,
728+ * (PULONG )Irp -> AssociatedIrp .SystemBuffer );
729729 Irp -> IoStatus .Information = 0 ;
730730 }
731731 else
@@ -895,7 +895,7 @@ CmBattDisableStatusNotify(IN PCMBATT_DEVICE_EXTENSION DeviceExtension)
895895 {
896896 /* Reset it back to 0 */
897897 DeviceExtension -> TripPointValue = 0 ;
898- Status = CmBattSetTripPpoint (DeviceExtension , 0 );
898+ Status = CmBattSetTripPoint (DeviceExtension , 0 );
899899 if (!NT_SUCCESS (Status ))
900900 {
901901 /* If it failed, set unknown/invalid value */
@@ -1029,7 +1029,7 @@ CmBattSetStatusNotify(IN PCMBATT_DEVICE_EXTENSION DeviceExtension,
10291029
10301030 /* Set the trip point with ACPI and check for success */
10311031 DeviceExtension -> TripPointValue = NewTripPoint ;
1032- Status = CmBattSetTripPpoint (DeviceExtension , NewTripPoint );
1032+ Status = CmBattSetTripPoint (DeviceExtension , NewTripPoint );
10331033 if (!(NewTripPoint ) && (Capacity )) Status = STATUS_NOT_SUPPORTED ;
10341034 if (!NT_SUCCESS (Status ))
10351035 {
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ CmBattGetBixData(
260260
261261NTSTATUS
262262NTAPI
263- CmBattSetTripPpoint (
263+ CmBattSetTripPoint (
264264 PCMBATT_DEVICE_EXTENSION DeviceExtension ,
265265 ULONG AlarmValue
266266);
Original file line number Diff line number Diff line change @@ -678,7 +678,7 @@ CmBattAddBattery(IN PDRIVER_OBJECT DriverObject,
678678 FdoExtension -> TripPointValue = BATTERY_UNKNOWN_CAPACITY ;
679679 FdoExtension -> Tag = 0 ;
680680 FdoExtension -> InterruptTime = KeQueryInterruptTime ();
681- FdoExtension -> TripPointSet = CmBattSetTripPpoint (FdoExtension , 0 ) !=
681+ FdoExtension -> TripPointSet = CmBattSetTripPoint (FdoExtension , 0 ) !=
682682 STATUS_OBJECT_NAME_NOT_FOUND ;
683683
684684 /* Setup the battery miniport information structure */
Original file line number Diff line number Diff line change 1313#include <acpiioct.h>
1414#include <debug.h>
1515
16- typedef struct
16+ typedef struct _ACPI_PACKAGE_FIELD
1717{
18- LPSTR Name ;
18+ PSTR Name ;
1919 BOOLEAN IsString ;
2020 PVOID Data ;
2121} ACPI_PACKAGE_FIELD , * PACPI_PACKAGE_FIELD ;
@@ -377,14 +377,14 @@ CmBattGetUniqueId(IN PDEVICE_OBJECT DeviceObject,
377377
378378NTSTATUS
379379NTAPI
380- CmBattSetTripPpoint (IN PCMBATT_DEVICE_EXTENSION DeviceExtension ,
381- IN ULONG AlarmValue )
380+ CmBattSetTripPoint (IN PCMBATT_DEVICE_EXTENSION DeviceExtension ,
381+ IN ULONG AlarmValue )
382382{
383383 NTSTATUS Status ;
384384 ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER InputBuffer ;
385385 PAGED_CODE ();
386386 if (CmBattDebug & 0x440 )
387- DbgPrint ("CmBattSetTripPpoint : _BTP Alarm Value %x Device %x Tid %x\n" ,
387+ DbgPrint ("CmBattSetTripPoint : _BTP Alarm Value %x Device %x Tid %x\n" ,
388388 AlarmValue , DeviceExtension -> DeviceId , KeGetCurrentThread );
389389
390390 /* Request the _BTP method */
@@ -400,7 +400,7 @@ CmBattSetTripPpoint(IN PCMBATT_DEVICE_EXTENSION DeviceExtension,
400400 NULL ,
401401 0 );
402402 if (!(NT_SUCCESS (Status )) && (CmBattDebug & 0x440 ))
403- DbgPrint ("CmBattSetTripPpoint : Failed _BTP method on device %x - Status (0x%x)\n" ,
403+ DbgPrint ("CmBattSetTripPoint : Failed _BTP method on device %x - Status (0x%x)\n" ,
404404 DeviceExtension -> DeviceId , Status );
405405
406406 /* Return status */
You can’t perform that action at this time.
0 commit comments