summaryrefslogtreecommitdiff
path: root/drivers/hwmon/ds1775.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/ds1775.c')
-rw-r--r--drivers/hwmon/ds1775.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/hwmon/ds1775.c b/drivers/hwmon/ds1775.c
index 80fb26f..feabdf2 100644
--- a/drivers/hwmon/ds1775.c
+++ b/drivers/hwmon/ds1775.c
@@ -98,7 +98,7 @@ int dtt_write(int sensor, int reg, int val)
}
-static int _dtt_init(int sensor)
+int dtt_init_one(int sensor)
{
int val;
@@ -133,23 +133,6 @@ static int _dtt_init(int sensor)
return 0;
}
-
-int dtt_init (void)
-{
- int i;
- unsigned char sensors[] = CONFIG_DTT_SENSORS;
-
- for (i = 0; i < sizeof(sensors); i++) {
- if (_dtt_init(sensors[i]) != 0)
- printf("DTT%d: FAILED\n", i+1);
- else
- printf("DTT%d: %i C\n", i+1, dtt_get_temp(sensors[i]));
- }
-
- return (0);
-}
-
-
int dtt_get_temp(int sensor)
{
return (dtt_read(sensor, DTT_READ_TEMP) / 256);