hdt: flags_to_string is now part of the acpi code
authorErwan Velu <erwanaliasr1@gmail.com>
Mon, 4 Apr 2011 18:14:45 +0000 (20:14 +0200)
committerErwan Velu <erwanaliasr1@gmail.com>
Mon, 4 Apr 2011 18:14:45 +0000 (20:14 +0200)
This code is now generic, let's remove it from hdt.

com32/hdt/hdt-cli-acpi.c

index 1b608c2..76f54df 100644 (file)
@@ -158,25 +158,6 @@ static void show_local_apic(s_madt * madt)
     }
 }
 
-/* M1PS flags have to be interpreted as strings */
-static char *flags_to_string(char *buffer, uint16_t flags)
-{
-    memset(buffer, 0, sizeof(buffer));
-    strcpy(buffer, "default");
-    if ((flags & POLARITY_ACTIVE_HIGH) == POLARITY_ACTIVE_HIGH)
-       strcpy(buffer, "high");
-    else if ((flags & POLARITY_ACTIVE_LOW) == POLARITY_ACTIVE_LOW)
-       strcpy(buffer, "low");
-    if ((flags & TRIGGER_EDGE) == TRIGGER_EDGE)
-       strncat(buffer, " edge", 5);
-    else if ((flags & TRIGGER_LEVEL) == TRIGGER_LEVEL)
-       strncat(buffer, " level", 6);
-    else
-       strncat(buffer, " default", 8);
-
-    return buffer;
-}
-
 /* Display the local apic NMI configuration */
 static void show_local_apic_nmi(s_madt * madt)
 {