diff options
author | Pascal Ernster <git@hardfalcon.net> | 2023-05-28 14:07:20 +0200 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2023-12-31 14:13:43 +0100 |
commit | 4e8c9cebe5b00033ef24330cd175ec1c0ec958b2 (patch) | |
tree | 2395fecad100062244897d6b8070c8ad87d4d92f | |
parent | 782eb050082acac93c2f9b3eb22348234bc93e99 (diff) |
realtek: Use hex for "soc" identifier in debugfs
The upper 16 bits of the 32 bit value encode the SoC model in BCD
notation (for example 0x83806800 on a Netgear GS108Tv3 with an
RTL8380M), so it makes more sense to output the value in hex notation
than in decimal notation.
Signed-off-by: Pascal Ernster <git@hardfalcon.net>
-rw-r--r-- | target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/debugfs.c b/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/debugfs.c index f46833f6f7..1c32d47c6f 100644 --- a/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/debugfs.c +++ b/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/debugfs.c @@ -605,7 +605,7 @@ void rtl838x_dbgfs_init(struct rtl838x_switch_priv *priv) priv->dbgfs_dir = rtl838x_dir; - debugfs_create_u32("soc", 0444, rtl838x_dir, + debugfs_create_x32("soc", 0444, rtl838x_dir, (u32 *)(RTL838X_SW_BASE + RTL838X_MODEL_NAME_INFO)); /* Create one directory per port */ |