summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwinbatt <[email protected]>2018-03-08 08:11:04 -0800
committerWei Mao <[email protected]>2018-03-08 08:11:04 -0800
commitae101f9f54c6f28d7b9e54d037af505ea5bc46c7 (patch)
tree789a6e975a0c7fe0504a51b9e1cbd16daba73f0c
parente44d02f44c8df3817a0b7743af00771baa52eb84 (diff)
Update wdf.c (#220)
No need to configure file handler.
-rw-r--r--simbatt/func/wdf.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/simbatt/func/wdf.c b/simbatt/func/wdf.c
index cb0adbb1..e311d25c 100644
--- a/simbatt/func/wdf.c
+++ b/simbatt/func/wdf.c
@@ -167,8 +167,7 @@ Return Value:
WDF_OBJECT_ATTRIBUTES DeviceAttributes;
PSIMBATT_FDO_DATA DevExt;
- WDFDEVICE DeviceHandle;
- WDF_FILEOBJECT_CONFIG FileObjectConfig;
+ WDFDEVICE DeviceHandle;
WDF_OBJECT_ATTRIBUTES LockAttributes;
WDF_PNPPOWER_EVENT_CALLBACKS PnpPowerCallbacks;
WDFQUEUE Queue;
@@ -193,21 +192,6 @@ Return Value:
WdfDeviceInitSetPnpPowerEventCallbacks(DeviceInit, &PnpPowerCallbacks);
//
- // Configure file handlers to forward all create, close, and cleanup
- // requests to the PDO.
- //
-
- WDF_FILEOBJECT_CONFIG_INIT(&FileObjectConfig,
- WDF_NO_EVENT_CALLBACK,
- WDF_NO_EVENT_CALLBACK,
- WDF_NO_EVENT_CALLBACK);
-
- FileObjectConfig.AutoForwardCleanupClose = WdfTrue;
- WdfDeviceInitSetFileObjectConfig(DeviceInit,
- &FileObjectConfig,
- WDF_NO_OBJECT_ATTRIBUTES);
-
- //
// Register WDM preprocess callbacks for IRP_MJ_DEVICE_CONTROL and
// IRP_MJ_SYSTEM_CONTROL. The battery class driver needs to handle these IO
// requests directly.