summaryrefslogtreecommitdiffstats
path: root/samples/connector
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2018-07-17 12:24:34 +0300
committerJon Mason <jdmason@kudzu.us>2018-11-01 10:33:12 -0400
commit40070408f54e76896d75ddccaabdd0c0714600f1 (patch)
tree08f17cf8deb2a95e4fa9d42971e616ed998752df /samples/connector
parent906e86b22dba61cb1baaed9be7fdcbf0afd74d7b (diff)
downloadlinux-stable-40070408f54e76896d75ddccaabdd0c0714600f1.tar.gz
linux-stable-40070408f54e76896d75ddccaabdd0c0714600f1.tar.bz2
linux-stable-40070408f54e76896d75ddccaabdd0c0714600f1.zip
ntb: idt: Alter temperature read method
In order to create a hwmon interface for the IDT PCIe-switch temperature sensor the already available reader method should be improved. Particularly we need to redesign it so one would be able to read temperature/offset values from registers of the passed types. Since IDT sensor interface provides temperature in unsigned format 0:7:1 (7 bits for real value and one for fraction) we also need to have helpers for the typical sysfs temperature data type conversion to and from this format. Even though the IDT PCIe-switch provided temperature offset got the same but signed type it can be translated by these methods too. Signed-off-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'samples/connector')
0 files changed, 0 insertions, 0 deletions