From a052d19e1c56f48f47b67b2a5d3bb0ae2b3f3535 Mon Sep 17 00:00:00 2001 From: Amit Sunil Dhamne Date: Wed, 14 May 2025 11:34:48 -0700 Subject: [PATCH] ANDROID: GKI: Pad vendor properties to power_supply_property enum Reserve 2 vendor properties to `enum power_supply_property` in preparation to accept backports related to power supply properties without breaking KMI. These are the following properties added: * Vendor Identifier (VID): Assigned to the battery manufacturer by USB Implementers Forum (USB-IF). * Product Identifier (PID) assigned by the manufacturer to the battery. Link to the expected backports in later releases: https://lore.kernel.org/all/20250507-batt_ops-v2-0-8d06130bffe6@google.com/ Bug: 417547450 Bug: 317920498 Change-Id: I22980870083bdeab22d5e04e3d8efe975d7ff38e Signed-off-by: Amit Sunil Dhamne --- include/linux/power_supply.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 90929669e82e..55dbf2ae03bb 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -181,6 +181,12 @@ enum power_supply_property { POWER_SUPPLY_PROP_MODEL_NAME, POWER_SUPPLY_PROP_MANUFACTURER, POWER_SUPPLY_PROP_SERIAL_NUMBER, + /* + * Properties of type `int'. Appended at the end of list to minimize ABI + * breakage. + */ + POWER_SUPPLY_PROP_USBIF_VENDOR_ID, + POWER_SUPPLY_PROP_USBIF_PRODUCT_ID, }; enum power_supply_type {