Refactoring of MSI GPU 40xx

This commit is contained in:
Wojciech Łazarski 2023-01-15 23:33:28 +00:00 committed by Adam Honse
parent 5c5ee6509a
commit e8f8d01447
4 changed files with 101 additions and 102 deletions

View file

@ -71,6 +71,11 @@ void MSIGPUv2Controller::SetMode(unsigned char mode)
MSIGPURegisterWrite(MSI_GPU_V2_REG_MODE, mode);
}
void MSIGPUv2Controller::Save()
{
MSIGPURegisterWrite(MSI_GPU_V2_REG_SAVE, 0x00);
}
unsigned char MSIGPUv2Controller::MSIGPURegisterRead(unsigned char reg)
{
return bus->i2c_smbus_read_byte_data(dev, reg);