USB_VEN: Move internal constant to .cpp

This commit is contained in:
Léo Lam 2017-11-02 22:01:38 +01:00
parent ef8b3cb960
commit c6038155cc
2 changed files with 3 additions and 3 deletions

View file

@ -49,6 +49,8 @@ struct DeviceEntry
#pragma pack(pop)
}
constexpr u32 USBV5_VERSION = 0x50001;
USB_VEN::USB_VEN(Kernel& ios, const std::string& device_name) : USBHost(ios, device_name)
{
}
@ -72,7 +74,7 @@ IPCCommandResult USB_VEN::IOCtl(const IOCtlRequest& request)
switch (request.request)
{
case USB::IOCTL_USBV5_GETVERSION:
Memory::Write_U32(VERSION, request.buffer_out);
Memory::Write_U32(USBV5_VERSION, request.buffer_out);
return GetDefaultReply(IPC_SUCCESS);
case USB::IOCTL_USBV5_GETDEVICECHANGE:
return GetDeviceChange(request);

View file

@ -54,8 +54,6 @@ private:
void OnDeviceChangeEnd() override;
void TriggerDeviceChangeReply();
static constexpr u32 VERSION = 0x50001;
bool m_devicechange_first_call = true;
std::mutex m_devicechange_hook_address_mutex;
std::unique_ptr<IOCtlRequest> m_devicechange_hook_request;