Re: [PATCH] thinkpad_acpi: use DEVICE_ATTR_* macros

2015-03-02 Thread Henrique de Moraes Holschuh
On Mon, Mar 2, 2015, at 14:40, Bastien Nocera wrote: > Use the DEVICE_ATTR_* macros to reduce boiler plate. > > Signed-off-by: Bastien Nocera Reviewed-by: Henrique de Moraes Holschuh Acked-by: Henrique de Moraes Holschuh > --- > drivers/platform/x86/thinkpad_acpi.c | 72 > ++

[PATCH] thinkpad_acpi: use DEVICE_ATTR_* macros

2015-03-02 Thread Bastien Nocera
Use the DEVICE_ATTR_* macros to reduce boiler plate. Signed-off-by: Bastien Nocera --- drivers/platform/x86/thinkpad_acpi.c | 72 ++-- 1 file changed, 20 insertions(+), 52 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thin