Commit 278dd048 authored by Rosalie Wanders's avatar Rosalie Wanders Committed by Jiri Kosina
Browse files

HID: sony: fix incorrect force-feedback check in sony_suspend()



This commit fixes the incorrect force-feedback check in sony_suspend(),
without this the check will always be true due to checking a constant
define that is never 0.

Signed-off-by: default avatarRosalie Wanders <rosalie@mailbox.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent d97e7d7c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2456,11 +2456,10 @@ static void sony_remove(struct hid_device *hdev)
static int sony_suspend(struct hid_device *hdev, pm_message_t message)
{
#ifdef CONFIG_SONY_FF

	/* On suspend stop any running force-feedback events */
	if (SONY_FF_SUPPORT) {
	struct sony_sc *sc = hid_get_drvdata(hdev);

	/* On suspend stop any running force-feedback events */
	if (sc->quirks & SONY_FF_SUPPORT) {
		sc->left = sc->right = 0;
		sony_send_output_report(sc);
	}