aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/lm63.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c
index 75e3a15c2f61..0c4fff0a00a4 100644
--- a/drivers/hwmon/lm63.c
+++ b/drivers/hwmon/lm63.c
@@ -796,6 +796,9 @@ static void lm63_init_client(struct i2c_client *client)
796 i2c_smbus_write_byte_data(client, LM63_REG_CONFIG1, 796 i2c_smbus_write_byte_data(client, LM63_REG_CONFIG1,
797 data->config); 797 data->config);
798 } 798 }
799 /* Tachometer is always enabled on LM64 */
800 if (data->kind == lm64)
801 data->config |= 0x04;
799 802
800 /* We may need pwm1_freq before ever updating the client data */ 803 /* We may need pwm1_freq before ever updating the client data */
801 data->pwm1_freq = i2c_smbus_read_byte_data(client, LM63_REG_PWM_FREQ); 804 data->pwm1_freq = i2c_smbus_read_byte_data(client, LM63_REG_PWM_FREQ);
@@ -836,9 +839,10 @@ static void lm63_init_client(struct i2c_client *client)
836 } 839 }
837 840
838 /* Show some debug info about the LM63 configuration */ 841 /* Show some debug info about the LM63 configuration */
839 dev_dbg(&client->dev, "Alert/tach pin configured for %s\n", 842 if (data->kind == lm63)
840 (data->config & 0x04) ? "tachometer input" : 843 dev_dbg(&client->dev, "Alert/tach pin configured for %s\n",
841 "alert output"); 844 (data->config & 0x04) ? "tachometer input" :
845 "alert output");
842 dev_dbg(&client->dev, "PWM clock %s kHz, output frequency %u Hz\n", 846 dev_dbg(&client->dev, "PWM clock %s kHz, output frequency %u Hz\n",
843 (data->config_fan & 0x08) ? "1.4" : "360", 847 (data->config_fan & 0x08) ? "1.4" : "360",
844 ((data->config_fan & 0x08) ? 700 : 180000) / data->pwm1_freq); 848 ((data->config_fan & 0x08) ? 700 : 180000) / data->pwm1_freq);