diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2007-09-06 19:33:21 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2007-09-06 19:33:21 +0000 |
commit | de2411e7a633f63c9757989584463766a84e5449 (patch) | |
tree | c715f0595a04516435f370caa8d2c785f219c959 /sys/dev/pci/if_iwnreg.h | |
parent | 384948e12fff32be1a9d00a7cb6d05772fb48156 (diff) |
fix temperature sensor. the sensors framework wants muK not degC!
Diffstat (limited to 'sys/dev/pci/if_iwnreg.h')
-rw-r--r-- | sys/dev/pci/if_iwnreg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwnreg.h b/sys/dev/pci/if_iwnreg.h index aaf5a47a290..d24c3d7e35b 100644 --- a/sys/dev/pci/if_iwnreg.h +++ b/sys/dev/pci/if_iwnreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwnreg.h,v 1.1 2007/09/06 16:37:03 damien Exp $ */ +/* $OpenBSD: if_iwnreg.h,v 1.2 2007/09/06 19:33:20 damien Exp $ */ /*- * Copyright (c) 2007 @@ -586,6 +586,7 @@ struct iwn_critical_temp { /* degK <-> degC conversion macros */ #define IWN_CTOK(c) ((c) + 273) #define IWN_KTOC(k) ((k) - 273) +#define IWN_CTOMUK(c) (((c) * 1000000) + 273150000) } __packed; /* structure for command IWN_SENSITIVITY */ |