From patchwork Sat Jan 16 23:43:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Curtin X-Patchwork-Id: 8050061 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A73B8BEEE5 for ; Sat, 16 Jan 2016 23:44:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A0A5A202F2 for ; Sat, 16 Jan 2016 23:44:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B297A202DD for ; Sat, 16 Jan 2016 23:43:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076AbcAPXn7 (ORCPT ); Sat, 16 Jan 2016 18:43:59 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:37691 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbcAPXn6 (ORCPT ); Sat, 16 Jan 2016 18:43:58 -0500 Received: by mail-wm0-f47.google.com with SMTP id n5so14864842wmn.0; Sat, 16 Jan 2016 15:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=jPCyF7O1xvKgj3hstBIrNEA1yjvFHvbeyO1yczKFEUU=; b=nz6pz9JWt0R9YD5dhH4qWY8WDzDziGRefZdLGavDKkvoxDXB5GQom6K1hsh00L466+ B6XLLa7zgLdWsle3bRyhm1LBBfOmr55FhQwc5WXHQia9z/JIxdawWQGd8hFnrFXOHnnk 6lQdAyemHubq48BvvtNPSaklkjOgKfJ72Xqg1qI0/r941bCJQJU0dkX/DmdNpSmqryaP hN+khpGf8w8ggK+y8xc/5AEDRtaf1FT1D+N1UB8WXu4t55Grlokb/wO8FmywyyLQ8rG9 ZipFMJAM6u7A0raa3twfX53VJMHVX/Etpe1JUtO3ayJLEHu4yVqhAgY6IHP3ZRmMMyd0 dB+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=jPCyF7O1xvKgj3hstBIrNEA1yjvFHvbeyO1yczKFEUU=; b=X+UGCk2LowBoLZYywAva1YKVQhkthpIruTYo98CFFNyRsj1Q6vBZCB79ro58obmrf+ /7SK8BsqI1fni3ajGwVTJQYPeOyVmoDKSNP31AlVgYFju5/ijB23qisoC9GLRPpHSPZu nwD3ZsGnIQ5z6vz38a2ORf+dKvA+oSatcTbVfPnmytZxKsLUVmlsqMpnZScjupPMVHTB 7YKNCL6FBrDoe25FjmmMEK5dv0dMM67woKrzxNrR/M5oLexOGI8aPdcxNAD6lHM+dA/P cSWQVbFphYA1/ksKXQHF5jAfBWZaUxpikcpzqZ4v5Nf6HA3Ma6j92DhZocRNudLIfBtO lT5w== X-Gm-Message-State: ALoCoQlJV+UaTsYMOEqaPlPhDGJSz8u5gMUtdu7chOrS5hgHfJmDfsIjSpny4yTKccLNF1UPKWHE2NBFwEjRQBy4y7ajsofQNg== MIME-Version: 1.0 X-Received: by 10.194.161.166 with SMTP id xt6mr18514370wjb.98.1452987837109; Sat, 16 Jan 2016 15:43:57 -0800 (PST) Received: by 10.27.217.211 with HTTP; Sat, 16 Jan 2016 15:43:57 -0800 (PST) Date: Sat, 16 Jan 2016 23:43:57 +0000 Message-ID: Subject: [PATCH] Remove logging for "Unsupported brightness interface" From: Eric Curtin To: platform-driver-x86@vger.kernel.org Cc: ibm-acpi-devel@lists.sourceforge.net, Darren Hart , Henrique de Moraes Holschuh , ibm-acpi@hmh.eng.br, Kernel development list Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Message gets logged on machines that are well supported. Fixed one checkpatch.pl ERROR also. Signed-off-by: Eric Curtin --- drivers/platform/x86/thinkpad_acpi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) "detecting firmware brightness interface capabilities\n"); @@ -6447,7 +6447,6 @@ static void __init tpacpi_detect_brightness_capabilities(void) * Lenovo Vista BIOS to ACPI brightness mode even if we are not * going to publish a backlight interface */ - b = tpacpi_check_std_acpi_brightness_support(); switch (b) { case 16: bright_maxlvl = 15; @@ -6459,7 +6458,6 @@ static void __init tpacpi_detect_brightness_capabilities(void) 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; } @@ -7440,7 +7438,7 @@ static struct ibm_struct volume_driver_data = { #define alsa_card NULL -static void inline volume_alsa_notify_change(void) +static inline void volume_alsa_notify_change(void) { } diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 0bed473..b149dec 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -6434,7 +6434,7 @@ static const struct tpacpi_quirk brightness_quirk_table[] __initconst = { */ static void __init tpacpi_detect_brightness_capabilities(void) { - unsigned int b; + const unsigned int b = tpacpi_check_std_acpi_brightness_support(); vdbg_printk(TPACPI_DBG_INIT,