mm61xx: fix enum type mismatch for GCC 13 compatibility

Fix enum type mismatch issues that cause compilation errors with GCC 13.
The patch corrects function signatures to use proper enum types instead
of generic integer types where appropriate.

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2025-10-19 00:00:00 +02:00
parent c0829b40fc
commit b7fbdf3acb

View File

@@ -0,0 +1,22 @@
--- a/debug.h
+++ b/debug.h
@@ -162,7 +162,7 @@ void morse_log_set_default(u8 lvl);
*
* @returns True if output would be generated and false otherwise.
*/
-bool morse_log_is_enabled(u32 id, u8 level);
+bool morse_log_is_enabled(enum morse_feature_id id, u8 level);
/**
* Set the default logging level for all features.
--- a/firmware.c
+++ b/firmware.c
@@ -850,7 +850,7 @@ static int morse_firmware_get_firmware(struct morse *mors, const char *fw_name)
return ret;
}
-int morse_firmware_init(struct morse *mors, enum morse_config_test_mode test_mode)
+int morse_firmware_init(struct morse *mors, uint test_mode)
{
int n;
int ret = 0;