diff options
author | Helge Deller <deller@gmx.de> | 2022-10-28 18:12:49 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-10-31 15:37:14 +0100 |
commit | 2b6ae0962b421103feb41a80406732944b0665b3 (patch) | |
tree | 7bb8dc31bcd9ce62de7e34836d09091252f6cb37 /arch/parisc/include | |
parent | a0c9f1f2e53b8eb2ae43987a30e547ba56b4fa18 (diff) | |
download | linux-stable-2b6ae0962b421103feb41a80406732944b0665b3.tar.gz linux-stable-2b6ae0962b421103feb41a80406732944b0665b3.tar.bz2 linux-stable-2b6ae0962b421103feb41a80406732944b0665b3.zip |
parisc: Avoid printing the hardware path twice
Avoid that the hardware path is shown twice in the kernel log, and clean
up the output of the version numbers to show up in the same order as
they are listed in the hardware database in the hardware.c file.
Additionally, optimize the memory footprint of the hardware database
and mark some code as init code.
Fixes: cab56b51ec0e ("parisc: Fix device names in /proc/iomem")
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # v4.9+
Diffstat (limited to 'arch/parisc/include')
-rw-r--r-- | arch/parisc/include/asm/hardware.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/parisc/include/asm/hardware.h b/arch/parisc/include/asm/hardware.h index 9d3d7737c58b..a005ebc54779 100644 --- a/arch/parisc/include/asm/hardware.h +++ b/arch/parisc/include/asm/hardware.h @@ -10,12 +10,12 @@ #define SVERSION_ANY_ID PA_SVERSION_ANY_ID struct hp_hardware { - unsigned short hw_type:5; /* HPHW_xxx */ - unsigned short hversion; - unsigned long sversion:28; - unsigned short opt; - const char name[80]; /* The hardware description */ -}; + unsigned int hw_type:8; /* HPHW_xxx */ + unsigned int hversion:12; + unsigned int sversion:12; + unsigned char opt; + unsigned char name[59]; /* The hardware description */ +} __packed; struct parisc_device; |