Formatting and style fixes for the MSIGPUv2Controller
* Change Hex literals to uppercase * Adjusting Metadata to correctly reflect the declared controller * Adding defines for Speed and Brightness values and adjusting mode declarations to suit * Replacing brightness array in favour of more flexible multiple
This commit is contained in:
parent
94a8ce3cbe
commit
915ecefd16
4 changed files with 240 additions and 238 deletions
|
|
@ -7,21 +7,19 @@
|
|||
|
||||
#include "Detector.h"
|
||||
#include "LogManager.h"
|
||||
#include "RGBController_MSIGPUv2.h"
|
||||
#include "MSIGPUv2Controller.h"
|
||||
#include "i2c_smbus.h"
|
||||
#include "pci_ids.h"
|
||||
#include <vector>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/******************************************************************************************\
|
||||
* *
|
||||
* DetectMSIGPUControllers *
|
||||
* *
|
||||
* Detect MSI GPU controllers on the enumerated I2C busses. *
|
||||
* *
|
||||
\******************************************************************************************/
|
||||
#include "RGBController_MSIGPUv2.h"
|
||||
#include "MSIGPUv2Controller.h"
|
||||
|
||||
/*-----------------------------------------------------------------------------------------*\
|
||||
| |
|
||||
| DetectMSI GPU V2 Controllers |
|
||||
| |
|
||||
| Detect MSI GPU v2 controllers on the enumerated I2C busses. |
|
||||
| |
|
||||
\*-----------------------------------------------------------------------------------------*/
|
||||
|
||||
void DetectMSIGPUv2Controllers(i2c_smbus_interface* bus, uint8_t i2c_addr, const std::string& name)
|
||||
{
|
||||
|
|
@ -37,7 +35,7 @@ void DetectMSIGPUv2Controllers(i2c_smbus_interface* bus, uint8_t i2c_addr, const
|
|||
LOG_TRACE("MSI GPU Controler using ITE9 chip");
|
||||
|
||||
|
||||
} /* DetectMSIGPUControllers() */
|
||||
} /* DetectMSIGPUv2Controllers() */
|
||||
|
||||
REGISTER_I2C_PCI_DETECTOR("MSI GeForce RTX 4070Ti 12GB Gaming X Trio", DetectMSIGPUv2Controllers, NVIDIA_VEN, NVIDIA_RTX4070TI_DEV, MSI_SUB_VEN, MSI_RTX4070TI_GAMING_X_TRIO_SUB_DEV, 0x68);
|
||||
REGISTER_I2C_PCI_DETECTOR("MSI GeForce RTX 4080 16GB Gaming X Trio", DetectMSIGPUv2Controllers, NVIDIA_VEN, NVIDIA_RTX4080_DEV, MSI_SUB_VEN, MSI_RTX4080_GAMING_X_TRIO_SUB_DEV, 0x68);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue