]> www.infradead.org Git - users/jedix/linux-maple.git/commit
EDAC: Use string choice helper functions
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 23 Feb 2025 21:24:29 +0000 (22:24 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 25 Feb 2025 21:19:55 +0000 (22:19 +0100)
commitd09055122bd20827e4772a215b4b1f8f9dce2eda
tree55033043c2cd751d405e49be781bb2b0ee7714a8
parent0ad2507d5d93f39619fc42372c347d6006b64319
EDAC: Use string choice helper functions

Remove hard-coded strings by using the str_enabled_disabled(), str_yes_no(),
str_write_read(), and str_plural() helper functions.

Add a space in "All DIMMs support ECC: yes/no" to improve readability.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Link: https://lore.kernel.org/r/20250223212429.3466-2-thorsten.blum@linux.dev
drivers/edac/amd64_edac.c
drivers/edac/debugfs.c
drivers/edac/i5400_edac.c
drivers/edac/i7300_edac.c
drivers/edac/xgene_edac.c