Commit f97455f9 authored by Even Xu's avatar Even Xu Committed by Jiri Kosina
Browse files

HID: Intel-thc-hid: Intel-quickspi: Correct device state names gramatically



Correct quickspi device state name and change the list order to follow
device state working flow.

Signed-off-by: default avatarEven Xu <even.xu@intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent d05c76fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -426,7 +426,7 @@ static struct quickspi_device *quickspi_dev_init(struct pci_dev *pdev, void __io

	thc_interrupt_enable(qsdev->thc_hw, true);

	qsdev->state = QUICKSPI_INITED;
	qsdev->state = QUICKSPI_INITIATED;

	return qsdev;
}
+2 −2
Original line number Diff line number Diff line
@@ -57,9 +57,9 @@

enum quickspi_dev_state {
	QUICKSPI_NONE,
	QUICKSPI_INITIATED,
	QUICKSPI_RESETING,
	QUICKSPI_RESETED,
	QUICKSPI_INITED,
	QUICKSPI_RESET,
	QUICKSPI_ENABLED,
	QUICKSPI_DISABLED,
};
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ int reset_tic(struct quickspi_device *qsdev)
		return -EINVAL;
	}

	qsdev->state = QUICKSPI_RESETED;
	qsdev->state = QUICKSPI_RESET;

	ret = quickspi_get_device_descriptor(qsdev);
	if (ret)