Update code to emit a version number on start.

This commit is contained in:
Jeff Curless
2026-01-10 18:52:00 -05:00
parent ca66fa0ea4
commit ab6fb9a9c6

View File

@@ -24,6 +24,10 @@
#include <linux/sched.h>
#include <generated/utsrelease.h>
#define VERSION_MAJOR 1
#define VERSION_MINOR 0
enum test_power_id {
ONEUP_BATTERY,
ONEUP_AC,
@@ -536,7 +540,7 @@ static int __init oneup_power_init(void)
int i;
int ret;
PR_INFO( "Starting Power monitor..." );
PR_INFO( "Starting Power monitor version %d.%d...",VERSION_MAJOR,VERSION_MINOR );
BUILD_BUG_ON(ONEUP_POWER_NUM != ARRAY_SIZE(power_supplies));
BUILD_BUG_ON(ONEUP_POWER_NUM != ARRAY_SIZE(power_configs));