Skip to content
Commit 59047d94 authored by Guangju Wang[baidu]'s avatar Guangju Wang[baidu] Committed by Ingo Molnar
Browse files

x86/microcode: Use the DEVICE_ATTR_RO() macro



Use DEVICE_ATTR_RO() helper instead of open-coded DEVICE_ATTR(),
which makes the code a bit shorter and easier to read.

No change in functionality.

Signed-off-by: default avatarGuangju Wang[baidu] <wgj900@163.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Acked-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230118023554.1898-1-wgj900@163.com
parent ba73e369
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment