From 57b3c4c23a59d129f2bdfd3cca894b5a78790072 Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Wed, 21 Aug 2024 12:14:15 +0200 Subject: [simbatt] Remove unused MAX_SUPPORTED_SIMBATT_CHILDREN define This define isn't used anywhere in the driver. Therefore proposing to remove it to clean up. --- simbatt/func/simbattdriverif.h | 1 - 1 file changed, 1 deletion(-) diff --git a/simbatt/func/simbattdriverif.h b/simbatt/func/simbattdriverif.h index 6fb45d8b..b2157a59 100644 --- a/simbatt/func/simbattdriverif.h +++ b/simbatt/func/simbattdriverif.h @@ -62,7 +62,6 @@ DEFINE_GUID(SIMBATT_DEVINTERFACE_GUID, #define IOCTL_SIMBATT_SET_UNIQUE_ID SIMBATT_IOCTL(0x809) #define IOCTL_SIMBATT_GET_MAXCHARGINGCURRENT SIMBATT_IOCTL(0x810) #define SIMBATT_RATE_CALCULATE 0x7fffffff -#define MAX_SUPPORTED_SIMBATT_CHILDREN 20 //------------------------------------------------------------------- Data Types -- cgit v1.3.1 From 95ca556121fcf891edcdd162b95b507e8f6c81cb Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Thu, 22 Aug 2024 12:13:48 +0200 Subject: Remove unreferenced BATTBUS_TYPE_SIMBATT define. --- simbatt/func/simbattdriverif.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/simbatt/func/simbattdriverif.h b/simbatt/func/simbattdriverif.h index b2157a59..ac9fab96 100644 --- a/simbatt/func/simbattdriverif.h +++ b/simbatt/func/simbattdriverif.h @@ -69,8 +69,6 @@ DEFINE_GUID(SIMBATT_DEVINTERFACE_GUID, // Data structure used in PlugIn and UnPlug ioctls // -#define BATTBUS_TYPE_SIMBATT 0; - typedef struct _BATTBUS_PLUGIN_HARDWARE { // -- cgit v1.3.1 From 673f69a6a755f17a2fb7afd1627cb8890073e4e8 Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Thu, 22 Aug 2024 12:14:53 +0200 Subject: Remove unreferenced BATTBUS_PLUGIN_HARDWARE struct. --- simbatt/func/simbattdriverif.h | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/simbatt/func/simbattdriverif.h b/simbatt/func/simbattdriverif.h index ac9fab96..f0ceb017 100644 --- a/simbatt/func/simbattdriverif.h +++ b/simbatt/func/simbattdriverif.h @@ -69,37 +69,6 @@ DEFINE_GUID(SIMBATT_DEVINTERFACE_GUID, // Data structure used in PlugIn and UnPlug ioctls // -typedef struct _BATTBUS_PLUGIN_HARDWARE -{ - // - // Size of this type. - // - - ULONG Size; - - // - // Unique serial number of the device to be enumerated. - // Enumeration will be failed if another device on the - // bus has the same serial number. - // - - ULONG SerialNo; - - // - // UI number. - // - - ULONG UINumber; - - // - // Type of device being enumerated - // - // Reserved value, set to 0. - // - - ULONG Type; - -} BATTBUS_PLUGIN_HARDWARE, *PBATTBUS_PLUGIN_HARDWARE; typedef struct _BATTBUS_UNPLUG_HARDWARE { -- cgit v1.3.1 From 700a917f0ddd4e8489bbafc18f6326811ae91625 Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Thu, 22 Aug 2024 12:15:38 +0200 Subject: Remove unreferenced BATTBUS_UNPLUG_HARDWARE struct. --- simbatt/func/simbattdriverif.h | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/simbatt/func/simbattdriverif.h b/simbatt/func/simbattdriverif.h index f0ceb017..bb617ebe 100644 --- a/simbatt/func/simbattdriverif.h +++ b/simbatt/func/simbattdriverif.h @@ -62,33 +62,3 @@ DEFINE_GUID(SIMBATT_DEVINTERFACE_GUID, #define IOCTL_SIMBATT_SET_UNIQUE_ID SIMBATT_IOCTL(0x809) #define IOCTL_SIMBATT_GET_MAXCHARGINGCURRENT SIMBATT_IOCTL(0x810) #define SIMBATT_RATE_CALCULATE 0x7fffffff - -//------------------------------------------------------------------- Data Types - -// -// Data structure used in PlugIn and UnPlug ioctls -// - - -typedef struct _BATTBUS_UNPLUG_HARDWARE -{ - // - // size of this type - // - - ULONG Size; - - // - // Serial number of the device to be unplugged. - // - - ULONG SerialNo; - - // - // Must not be referenced used. - // - - ULONG Reserved[2]; - -} BATTBUS_UNPLUG_HARDWARE, *PBATTBUS_UNPLUG_HARDWARE; - -- cgit v1.3.1 From c9de4121a19dc08d9a8887d3534b8a86c01160f1 Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Thu, 22 Aug 2024 12:18:33 +0200 Subject: Remove unreferenced battery bus GUID and IOCTL calls. --- simbatt/func/simbattdriverif.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/simbatt/func/simbattdriverif.h b/simbatt/func/simbattdriverif.h index bb617ebe..04549f72 100644 --- a/simbatt/func/simbattdriverif.h +++ b/simbatt/func/simbattdriverif.h @@ -25,20 +25,6 @@ Abstract: //------------------------------------------------------------------ Definitions -// -// Battery bus driver interface -// - -// {780AC894-01FF-4b5e-B4C8-9C00709200EB} -DEFINE_GUID(BATTBUS_DEVINTERFACE_GUID, - 0x780ac894, 0x1ff, 0x4b5e, 0xb4, 0xc8, 0x9c, 0x0, 0x70, 0x92, 0x0, 0xeb); - -#define BATTBUS_IOCTL(_index_) \ - CTL_CODE(FILE_DEVICE_BUS_EXTENDER, _index_, METHOD_BUFFERED, FILE_READ_DATA) - -#define IOCTL_BATTBUS_PLUGIN_HARDWARE BATTBUS_IOCTL(0x0) -#define IOCTL_BATTBUS_UNPLUG_HARDWARE BATTBUS_IOCTL(0x1) - // // Simulated battery ioctl interface // -- cgit v1.3.1