From patchwork Wed Sep 9 17:30:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Azael Avalos X-Patchwork-Id: 7147871 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9583B9F314 for ; Wed, 9 Sep 2015 17:30:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDDD02074E for ; Wed, 9 Sep 2015 17:30:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DF18720618 for ; Wed, 9 Sep 2015 17:30:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754783AbbIIRan (ORCPT ); Wed, 9 Sep 2015 13:30:43 -0400 Received: from mail-ob0-f172.google.com ([209.85.214.172]:33941 "EHLO mail-ob0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751055AbbIIRaQ (ORCPT ); Wed, 9 Sep 2015 13:30:16 -0400 Received: by obbda8 with SMTP id da8so13807933obb.1; Wed, 09 Sep 2015 10:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OrQiv9YuQ4BfHsFviDzGfSIbdieO5FhuP8a1mq9lhhI=; b=ykgeve7zPeDOFuMwGJI27B79N/5BX9eidC8DYVPu3VMskx61UdAi4309dMUaRntu3p yF2nHd9PEKvzlTvYEa+j9A0AUEEJQjLhyz4kud8XJwUaEmw81tJvP098rEFtoq22OHHI munKJkAaEQT4ppnBrVfnsDbeW8I1x/APJV8B4EsQL1d+EH6PJw5ibqPyTSbwuL4nnK9O LvHFauS1DQU80W+Ffx8O4EwdwDnyZ96G4JfPxlonRFBrShMxD56qq8ZNKpMsXAOvw27Y JJgcm9OowMuSDFWZzVgjI3fjylC8qt9/EpNeWAcrQM5atob4N/6+85n11gegCL9k4Yk2 VlFA== X-Received: by 10.182.240.135 with SMTP id wa7mr28376711obc.63.1441819815729; Wed, 09 Sep 2015 10:30:15 -0700 (PDT) Received: from Shakuras.scurra.org ([148.210.109.33]) by smtp.gmail.com with ESMTPSA id rz6sm4465227obb.15.2015.09.09.10.30.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 10:30:14 -0700 (PDT) From: Azael Avalos To: Darren Hart , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Azael Avalos Subject: [PATCH 1/1] toshiba_acpi: Add 0x prefix to available_kbd_modes_show funtion Date: Wed, 9 Sep 2015 11:30:09 -0600 Message-Id: <1441819810-11762-2-git-send-email-coproscefalo@gmail.com> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1441819810-11762-1-git-send-email-coproscefalo@gmail.com> References: <1441819810-11762-1-git-send-email-coproscefalo@gmail.com> 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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 This patch adds the 0x prefix to the values printed by such function, the values are already being printed in hex, but without the prefix, causing confussion, even though the file under Documentation/ABI clearly states that hey are hex values. Simply add the 0x prefix to avoid such confussion. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 9f7ced1..50a2116 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -1669,10 +1669,10 @@ static ssize_t available_kbd_modes_show(struct device *dev, struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); if (toshiba->kbd_type == 1) - return sprintf(buf, "%x %x\n", + return sprintf(buf, "0x%x 0x%x\n", SCI_KBD_MODE_FNZ, SCI_KBD_MODE_AUTO); - return sprintf(buf, "%x %x %x\n", + return sprintf(buf, "0x%x 0x%x 0x%x\n", SCI_KBD_MODE_AUTO, SCI_KBD_MODE_ON, SCI_KBD_MODE_OFF); } static DEVICE_ATTR_RO(available_kbd_modes);