Change all I2C/SMBus detectors to use RegisterRGBController
This commit is contained in:
parent
f1d6c2953d
commit
ec90f4678b
20 changed files with 59 additions and 59 deletions
|
|
@ -61,7 +61,7 @@ bool TestForGainwardGPUController(i2c_smbus_interface* bus, unsigned char addres
|
|||
* *
|
||||
\******************************************************************************************/
|
||||
|
||||
void DetectGainwardGPUControllers(std::vector<i2c_smbus_interface*> &busses, std::vector<RGBController*> &rgb_controllers)
|
||||
void DetectGainwardGPUControllers(std::vector<i2c_smbus_interface*> &busses)
|
||||
{
|
||||
GainwardGPUController* new_GainwardGPU;
|
||||
RGBController_GainwardGPU* new_controller;
|
||||
|
|
@ -81,7 +81,7 @@ void DetectGainwardGPUControllers(std::vector<i2c_smbus_interface*> &busses, std
|
|||
new_GainwardGPU = new GainwardGPUController(busses[bus], 0x08);
|
||||
new_controller = new RGBController_GainwardGPU(new_GainwardGPU);
|
||||
new_controller->name = device_list[dev_idx].name;
|
||||
rgb_controllers.push_back(new_controller);
|
||||
ResourceManager::get()->RegisterRGBController(new_controller);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue