summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2023-05-02 11:55:06 +0200
committerJean Delvare <jdelvare@suse.de>2023-05-02 11:55:06 +0200
commita183fbeba81ccb9f91aadf2625050854bf888f81 (patch)
tree526b26825f607a8c6a512f565f2324c33e0eb941
parentd26d1d0e76bf598463f22bde48da63d9fe33e31a (diff)
downloaddmidecode-git-master.tar.gz
Move function dmi_hp_240_attr() where it belongsHEADmaster
-rw-r--r--dmioem.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/dmioem.c b/dmioem.c
index a77443a..04a89ab 100644
--- a/dmioem.c
+++ b/dmioem.c
@@ -205,27 +205,6 @@ static void dmi_hp_197_qdf(const u8 *qdf)
pr_attr("QDF/S-SPEC", "%s", str);
}
-static void dmi_hp_240_attr(u64 defined, u64 set)
-{
- static const char *attributes[] = {
- "Updatable",
- "Reset Required",
- "Authentication Required",
- "In Use",
- "UEFI Image",
- };
- unsigned int i;
-
- pr_list_start("Attributes Defined/Set", NULL);
- for (i = 0; i < ARRAY_SIZE(attributes); i++)
- {
- if (!(defined.l & (1UL << i)))
- continue;
- pr_list_item("%s: %s", attributes[i], set.l & (1UL << i) ? "Yes" : "No");
- }
- pr_list_end();
-}
-
static void dmi_hp_203_assoc_hndl(const char *fname, u16 num)
{
if (opt.flags & FLAG_QUIET)
@@ -725,6 +704,27 @@ static void dmi_hp_239_usb_device(u8 class, u8 subclass, u8 protocol)
}
}
+static void dmi_hp_240_attr(u64 defined, u64 set)
+{
+ static const char *attributes[] = {
+ "Updatable",
+ "Reset Required",
+ "Authentication Required",
+ "In Use",
+ "UEFI Image",
+ };
+ unsigned int i;
+
+ pr_list_start("Attributes Defined/Set", NULL);
+ for (i = 0; i < ARRAY_SIZE(attributes); i++)
+ {
+ if (!(defined.l & (1UL << i)))
+ continue;
+ pr_list_item("%s: %s", attributes[i], set.l & (1UL << i) ? "Yes" : "No");
+ }
+ pr_list_end();
+}
+
static void dmi_hp_242_hdd_type(u8 code)
{
const char *str = "Reserved";