From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753466AbcHPSIB (ORCPT ); Tue, 16 Aug 2016 14:08:01 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:36282 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbcHPSH7 (ORCPT ); Tue, 16 Aug 2016 14:07:59 -0400 From: Azael Avalos To: Darren Hart , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Azael Avalos Subject: [PATCH] toshiba_acpi: Fix the kbd_backlight_mode_show printed value Date: Tue, 16 Aug 2016 12:07:55 -0600 Message-Id: <20160816180755.1845-1-coproscefalo@gmail.com> X-Mailer: git-send-email 2.9.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mentioned function prints the value in decimal, but the documentation and its parent function available_kbd_modes_show are showing the value as hexadecimal. This patch simply changes the value printed from decimal to hex, as stated in the documentation and the parent function. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 254a4d5..444f351 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -1873,7 +1873,7 @@ static ssize_t kbd_backlight_mode_show(struct device *dev, if (toshiba_kbd_illum_status_get(toshiba, &time) < 0) return -EIO; - return sprintf(buf, "%i\n", time & SCI_KBD_MODE_MASK); + return sprintf(buf, "0x%x\n", time & SCI_KBD_MODE_MASK); } static DEVICE_ATTR_RW(kbd_backlight_mode); -- 2.9.2