mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
Support the new "VGN" prefix for VAIO EEPROMs.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2990 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -3289,12 +3289,12 @@ void print_eeprom(const sensors_chip_name *name)
|
||||
for (i = 0; i < 4; i++)
|
||||
if (!sensors_get_feature(*name, SENSORS_EEPROM_VAIO_NAME+i, &a))
|
||||
buffer[i] = (char) a;
|
||||
if (strncmp(buffer, "PCG-", 4) == 0)
|
||||
{
|
||||
if (strncmp(buffer, "PCG-", 4) == 0
|
||||
|| strncmp(buffer, "VGN-", 4) == 0) {
|
||||
/* must be a real Sony Vaio EEPROM */
|
||||
memset(buffer + 4, '\0', 29);
|
||||
for (a = 1; i < 32 && a != 0; i++) /* stop at first zero */
|
||||
if (!sensors_get_feature(*name, SENSORS_EEPROM_VAIO_NAME+i, &a)
|
||||
if (!sensors_get_feature(*name, SENSORS_EEPROM_VAIO_NAME+i, &a)
|
||||
&& a != 0)
|
||||
buffer[i] = (char) a;
|
||||
print_label(label, 24);
|
||||
|
Reference in New Issue
Block a user