mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
mask lower bits for temp
This commit is contained in:
parent
fc4a807b4e
commit
1f77192d62
@ -4454,13 +4454,13 @@ static ssize_t temp_show(struct device *device,
|
|||||||
|
|
||||||
if (dev->link[0].info->type == DDB_MOD) {
|
if (dev->link[0].info->type == DDB_MOD) {
|
||||||
if (dev->link[0].info->version == 2) {
|
if (dev->link[0].info->version == 2) {
|
||||||
temp = ddbreadl(dev, TEMPMON2_BOARD);
|
temp = 0xffff & ddbreadl(dev, TEMPMON2_BOARD);
|
||||||
temp = (temp * 1000) >> 8;
|
temp = (temp * 1000) >> 8;
|
||||||
|
|
||||||
temp2 = ddbreadl(dev, TEMPMON2_FPGACORE);
|
temp2 = 0xffff & ddbreadl(dev, TEMPMON2_FPGACORE);
|
||||||
temp2 = (temp2 * 1000) >> 8;
|
temp2 = (temp2 * 1000) >> 8;
|
||||||
|
|
||||||
temp3 = ddbreadl(dev, TEMPMON2_QAMCORE);
|
temp3 = 0xffff & ddbreadl(dev, TEMPMON2_QAMCORE);
|
||||||
temp3 = (temp3 * 1000) >> 8;
|
temp3 = (temp3 * 1000) >> 8;
|
||||||
|
|
||||||
return sprintf(buf, "%d %d %d\n", temp, temp2, temp3);
|
return sprintf(buf, "%d %d %d\n", temp, temp2, temp3);
|
||||||
|
Loading…
Reference in New Issue
Block a user