diff -r fbf22ccd9d6f -r 0ee888c485d5 Hardware/LPC/F718XX.cs --- a/Hardware/LPC/F718XX.cs Tue Sep 21 10:33:28 2010 +0000 +++ b/Hardware/LPC/F718XX.cs Tue Sep 21 20:32:36 2010 +0000 @@ -35,20 +35,18 @@ */ -using System; -using System.Collections.Generic; using System.Globalization; using System.Text; namespace OpenHardwareMonitor.Hardware.LPC { internal class F718XX : ISuperIO { - private ushort address; - private Chip chip; + private readonly ushort address; + private readonly Chip chip; - private float?[] voltages; - private float?[] temperatures; - private float?[] fans; + private readonly float?[] voltages; + private readonly float?[] temperatures; + private readonly float?[] fans; // Hardware Monitor private const byte ADDRESS_REGISTER_OFFSET = 0x05; @@ -58,7 +56,8 @@ private const byte VOLTAGE_BASE_REG = 0x20; private const byte TEMPERATURE_CONFIG_REG = 0x69; private const byte TEMPERATURE_BASE_REG = 0x70; - private byte[] FAN_TACHOMETER_REG = new byte[] { 0xA0, 0xB0, 0xC0, 0xD0 }; + private readonly byte[] FAN_TACHOMETER_REG = + new byte[] { 0xA0, 0xB0, 0xC0, 0xD0 }; private byte ReadByte(byte register) { WinRing0.WriteIoPortByte( @@ -126,7 +125,7 @@ for (int i = 0; i < temperatures.Length; i++) { switch (chip) { case Chip.F71858: { - int tableMode = 0x3 & ReadByte((byte)(TEMPERATURE_CONFIG_REG)); + int tableMode = 0x3 & ReadByte(TEMPERATURE_CONFIG_REG); int high = ReadByte((byte)(TEMPERATURE_BASE_REG + 2 * i)); int low =