Skip to content

Commit b8b29a1

Browse files
Fix chipset enum name to include 'vendor_' (#210)
The original change that introduced this should have used a consistent prefix for all enum types, for consistency sake.
1 parent 9d80992 commit b8b29a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/riscv/api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/* RISC-V Vendor IDs. */
99
enum cpuinfo_riscv_chipset_vendor {
1010
cpuinfo_riscv_chipset_vendor_unknown = 0,
11-
cpuinfo_riscv_chipset_sifive = 0x489,
11+
cpuinfo_riscv_chipset_vendor_sifive = 0x489,
1212
cpuinfo_riscv_chipset_vendor_max,
1313
};
1414

src/riscv/uarch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void cpuinfo_riscv_decode_vendor_uarch(
1111
enum cpuinfo_uarch uarch[restrict static 1]) {
1212
/* The vendor ID is sufficient to determine the cpuinfo_vendor. */
1313
switch(vendor_id) {
14-
case cpuinfo_riscv_chipset_sifive:
14+
case cpuinfo_riscv_chipset_vendor_sifive:
1515
*vendor = cpuinfo_vendor_sifive;
1616
break;
1717
default:

0 commit comments

Comments
 (0)