Displaying 1 result from an estimated 1 matches for "diode_offset_mult".
2009 Nov 19
2
[RFC] nouveau: Add basic i2c sensor chip support
...i++) {
+ uint8_t id = bios->data[offset+entrylen*i];
+ uint16_t val = ROM16(bios->data[offset+1+entrylen*i]);
+
+ switch (id) {
+ case 0x1:
+ if ((val & 0x8f) == 0)
+ bios->sensor.temp_correction =
+ (val >> 9) & 0x7f;
+ break;
+ case 0x10:
+ bios->sensor.diode_offset_mult = val;
+ break;
+ case 0x11:
+ bios->sensor.diode_offset_div = val;
+ break;
+ case 0x12:
+ bios->sensor.slope_mult = val;
+ break;
+ case 0x13:
+ bios->sensor.slope_div = val;
+ break;
+ }
+ }
+ return 0;
+}
+
+static int parse_bit_performance_tbl_entry(struct drm_device...