summaryrefslogtreecommitdiff
path: root/drivers/hwmon/lm73.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2008-07-11 11:50:53 +0200
committerWolfgang Denk <wd@denx.de>2008-07-13 15:26:18 +0200
commit6ecbb45bb027e90c19d63b48e7b0c05acc1a87c0 (patch)
treedb647af285d1d0fedc4dd29d88a8a9cf9fa97156 /drivers/hwmon/lm73.c
parentc78fce699c7ff467ecd841da6a79f065180bf578 (diff)
hwmon: Cleaning hwmon devices
Clean Makefile Move device specific values to driver for better reading Signed-off-by: Michal Simek <monstr@monstr.eu> Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/hwmon/lm73.c')
-rw-r--r--drivers/hwmon/lm73.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/hwmon/lm73.c b/drivers/hwmon/lm73.c
index 98e8bd2984..dd24683536 100644
--- a/drivers/hwmon/lm73.c
+++ b/drivers/hwmon/lm73.c
@@ -38,6 +38,12 @@
* Device code
*/
#define DTT_I2C_DEV_CODE 0x48 /* National Semi's LM73 device */
+#define DTT_READ_TEMP 0x0
+#define DTT_CONFIG 0x1
+#define DTT_TEMP_HIGH 0x2
+#define DTT_TEMP_LOW 0x3
+#define DTT_CONTROL 0x4
+#define DTT_ID 0x7
int dtt_read(int const sensor, int const reg)
{