mirror of
https://gitlab.com/manzerbredes/ina260-sysfs-driver.git
synced 2025-04-19 04:09:45 +00:00
Minor changes
This commit is contained in:
parent
4acb4daa59
commit
45e16466b1
1 changed files with 1 additions and 1 deletions
2
ina260.c
2
ina260.c
|
@ -87,7 +87,7 @@ static int ina260_hwmon_read(struct device *dev, enum hwmon_sensor_types type,
|
||||||
if(err<0){
|
if(err<0){
|
||||||
return err;
|
return err;
|
||||||
} else if(type == hwmon_power) {
|
} else if(type == hwmon_power) {
|
||||||
*val=10*rvalue*1000;
|
*val=rvalue*10000;
|
||||||
} else{
|
} else{
|
||||||
*val=div_u64(rvalue*25,100)+rvalue;
|
*val=div_u64(rvalue*25,100)+rvalue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue