Skip to content
Commit 63744756 authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman
Browse files

dmi-id: Use dynamic sysfs attributes



We can use sysfs attributes with an extra parameter for dmi id
attributes. This makes it possible to use the same callback function
for all attributes, reducing the binary size significantly (-18% on
x86_64.)

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Acked-by: default avatarLennart Poettering <mzxreary@0pointer.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 990e53f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment