thinkpad_acpi: Remove ambiguous logging for "Unsupported brightness interface"
authorEric Curtin <ericcurtin17@gmail.com>
Sat, 30 Jan 2016 16:55:59 +0000 (16:55 +0000)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 23 Mar 2016 17:05:25 +0000 (10:05 -0700)
"Unsupported brightness interface" message gets logged on
 machines that are well supported.

Signed-off-by: Eric Curtin <ericcurtin17@gmail.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c

index a268a7abf8abe754f30fba55941b04fef2ffdef8..e305ab541a2227e1f94ff3e80a0da369ed385946 100644 (file)
@@ -6653,18 +6653,16 @@ static void __init tpacpi_detect_brightness_capabilities(void)
        switch (b) {
        case 16:
                bright_maxlvl = 15;
-               pr_info("detected a 16-level brightness capable ThinkPad\n");
                break;
        case 8:
        case 0:
                bright_maxlvl = 7;
-               pr_info("detected a 8-level brightness capable ThinkPad\n");
                break;
        default:
-               pr_info("Unsupported brightness interface\n");
                tp_features.bright_unkfw = 1;
                bright_maxlvl = b - 1;
        }
+       pr_debug("detected %u brightness levels\n", bright_maxlvl + 1);
 }
 
 static int __init brightness_init(struct ibm_init_struct *iibm)