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: NJean Delvare <khali@linux-fr.org> Acked-by: NLennart Poettering <mzxreary@0pointer.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
Showing
想要评论请 注册 或 登录