commit dd72b52f7253ea4ad1e0070985709272435a9a99
parent 39d827040286bfa3b498a37d052b011fe4a3b329
Author: nanocodebug <nanocodebug@gmail.com>
Date: Tue, 21 Jun 2022 17:05:55 -0700
add type field
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/reform2-lpc-driver/src/reform2-lpc.c b/reform2-lpc-driver/src/reform2-lpc.c
@@ -51,6 +51,7 @@ static struct power_supply_desc bat_desc = {
.properties = bat_props,
.num_properties = ARRAY_SIZE(bat_props),
.get_property = bat_get_property,
+ .type = POWER_SUPPLY_TYPE_BATTERY,
};
static int spiProbe(struct spi_device *spi)