public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] toshiba_acpi: Fix USB Sleep and Music always disabled
@ 2015-09-09 17:25 Azael Avalos
  2015-09-09 17:25 ` [PATCH] toshiba_acpi: Fix hotkeys registration on some toshiba models Azael Avalos
  2015-09-10 16:18 ` [PATCH] toshiba_acpi: Fix USB Sleep and Music always disabled Darren Hart
  0 siblings, 2 replies; 4+ messages in thread
From: Azael Avalos @ 2015-09-09 17:25 UTC (permalink / raw)
  To: Darren Hart, platform-driver-x86, linux-kernel; +Cc: Azael Avalos

Commit e1a949c1b988 ("toshiba_acpi: Refactor *{get, set} functions return
value") made changes on the return type of the HCI/SCI functions, but a
typo on the USB Sleep and Music code is always reporting non existent
support for such feature.

This patch corrects the typo, changing an assignment to a comparison,
making the laptops with actual support for such feature to work again.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
---
Darren,

Hopefully this patch can go into one of the 4.3 RCs, as the changes are
there and to avoid shipping a broken feature support.

 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 6740c51..c434b53 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -938,7 +938,7 @@ static int toshiba_usb_sleep_music_get(struct toshiba_acpi_dev *dev, u32 *state)
 	else if (result == TOS_NOT_SUPPORTED)
 		return -ENODEV;
 
-	return result = TOS_SUCCESS ? 0 : -EIO;
+	return result == TOS_SUCCESS ? 0 : -EIO;
 }
 
 static int toshiba_usb_sleep_music_set(struct toshiba_acpi_dev *dev, u32 state)
-- 
2.5.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-10 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09 17:25 [PATCH] toshiba_acpi: Fix USB Sleep and Music always disabled Azael Avalos
2015-09-09 17:25 ` [PATCH] toshiba_acpi: Fix hotkeys registration on some toshiba models Azael Avalos
2015-09-10 16:20   ` Darren Hart
2015-09-10 16:18 ` [PATCH] toshiba_acpi: Fix USB Sleep and Music always disabled Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox