summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/io/pchtemp
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2020-09-22 10:39:49 -0400
committerDan McDonald <danmcd@joyent.com>2020-09-22 10:39:49 -0400
commit267e12a7d9bf6e5fcefb9cc00f46bfff0dc5226e (patch)
tree19a3941920d0039c35d53a5cbee189b5ca51995a /usr/src/uts/intel/io/pchtemp
parent517abc5c668925e6092495bf332233c3599980d2 (diff)
parente9faba760cdf80d7dfa110fe0830917ab94668c2 (diff)
downloadillumos-joyent-vpc.tar.gz
Merge branch 'master' into vpcvpc
Diffstat (limited to 'usr/src/uts/intel/io/pchtemp')
-rw-r--r--usr/src/uts/intel/io/pchtemp/pchtemp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/uts/intel/io/pchtemp/pchtemp.c b/usr/src/uts/intel/io/pchtemp/pchtemp.c
index 4aeb098112..2cfd7ae806 100644
--- a/usr/src/uts/intel/io/pchtemp/pchtemp.c
+++ b/usr/src/uts/intel/io/pchtemp/pchtemp.c
@@ -137,7 +137,7 @@ pchtemp_read_check(pchtemp_t *pch)
}
static int
-pchtemp_read(void *arg, sensor_ioctl_temperature_t *sit)
+pchtemp_read(void *arg, sensor_ioctl_scalar_t *scalar)
{
uint16_t temp, ctt, tahv, talv;
uint8_t tsel;
@@ -175,9 +175,9 @@ pchtemp_read(void *arg, sensor_ioctl_temperature_t *sit)
}
pch->pcht_temp = (temp & PCHTEMP_REG_TEMP_TSR) - PCHTEMP_TEMP_OFFSET;
- sit->sit_unit = SENSOR_UNIT_CELSIUS;
- sit->sit_gran = PCHTEMP_TEMP_RESOLUTION;
- sit->sit_temp = pch->pcht_temp;
+ scalar->sis_unit = SENSOR_UNIT_CELSIUS;
+ scalar->sis_gran = PCHTEMP_TEMP_RESOLUTION;
+ scalar->sis_value = pch->pcht_temp;
mutex_exit(&pch->pcht_mutex);
return (0);
@@ -185,7 +185,7 @@ pchtemp_read(void *arg, sensor_ioctl_temperature_t *sit)
static const ksensor_ops_t pchtemp_temp_ops = {
.kso_kind = ksensor_kind_temperature,
- .kso_temp = pchtemp_read
+ .kso_scalar = pchtemp_read
};
static void