diff options
| -rw-r--r-- | simbatt/func/wdf.c | 18 |
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. |
