x86/microcode: Use the DEVICE_ATTR_RO() macro
authorGuangju Wang[baidu] <wgj900@163.com>
Wed, 18 Jan 2023 02:35:54 +0000 (10:35 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 18 Jan 2023 11:02:20 +0000 (12:02 +0100)
commit59047d942bedc4ce88a2121a9f9e656b9532dd30
tree0dfcf73322db016705a2397e4945f05853ea988a
parentba73e369b706a853cdafa60570854fecec9f9fdd
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: Guangju Wang[baidu] <wgj900@163.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230118023554.1898-1-wgj900@163.com
arch/x86/kernel/cpu/microcode/core.c