From: Axel Lin <[email protected]> cmpc_accel_sensitivity_attr is needlessly defined global. This patch makes the symbol static.
Signed-off-by: Axel Lin <[email protected]> Acked-by: Thadeu Lima de Souza Cascardo <[email protected]> Cc: Daniel Oliveira Nascimento <[email protected]> Cc: Matthew Garrett <[email protected]> Signed-off-by: Andrew Morton <[email protected]> --- drivers/platform/x86/classmate-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/platform/x86/classmate-laptop.c~classmate-laptop-make-needlessly-global-symbols-static drivers/platform/x86/classmate-laptop.c --- a/drivers/platform/x86/classmate-laptop.c~classmate-laptop-make-needlessly-global-symbols-static +++ a/drivers/platform/x86/classmate-laptop.c @@ -208,7 +208,7 @@ static ssize_t cmpc_accel_sensitivity_st return strnlen(buf, count); } -struct device_attribute cmpc_accel_sensitivity_attr = { +static struct device_attribute cmpc_accel_sensitivity_attr = { .attr = { .name = "sensitivity", .mode = 0660 }, .show = cmpc_accel_sensitivity_show, .store = cmpc_accel_sensitivity_store _ -- To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
