mirror of
https://github.com/torvalds/linux.git
synced 2025-04-12 06:49:52 +00:00
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: Even Xu <even.xu@intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
d05c76fceb
commit
f97455f936
@ -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;
|
||||
}
|
||||
|
@ -57,9 +57,9 @@
|
||||
|
||||
enum quickspi_dev_state {
|
||||
QUICKSPI_NONE,
|
||||
QUICKSPI_INITIATED,
|
||||
QUICKSPI_RESETING,
|
||||
QUICKSPI_RESETED,
|
||||
QUICKSPI_INITED,
|
||||
QUICKSPI_RESET,
|
||||
QUICKSPI_ENABLED,
|
||||
QUICKSPI_DISABLED,
|
||||
};
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user