mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-02 13:30:30 +00:00
Drop DEFAULT_VRM, as it makes no sense to have a single default
VRM for all drivers. Same was done it Linux 2.6 some times ago. Also comment out all "set vrm" lines in sensors.conf.eg, as Linux 2.6 now accurately deduces the VRM from the CPU model. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3190 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3e8bc2fd9d
commit
ea30854a22
7 files changed
+17
-9
No files matched your search
@@ -59,7 +59,7 @@ static unsigned short normal_i2c_range[] = { SENSORS_I2C_END };
|
||||
static unsigned int normal_isa[] = { SENSORS_ISA_END };
|
||||
static unsigned int normal_isa_range[] = { SENSORS_ISA_END };
|
||||
|
||||
/* default VRM to 9.0 instead of 8.2 */
|
||||
/* default VRM to 9.0 */
|
||||
#define ASB100_DEFAULT_VRM 90
|
||||
|
||||
/* Insmod parameters */
|
||||
|
||||
+1
-1
@@ -548,7 +548,7 @@ static void lm87_init_client(struct i2c_client *client)
|
||||
#endif
|
||||
);
|
||||
|
||||
data->vrm = DEFAULT_VRM;
|
||||
data->vrm = 82;
|
||||
|
||||
/* Start monitoring */
|
||||
reg = lm87_read_value(client, LM87_REG_CONFIG);
|
||||
|
||||
@@ -479,7 +479,7 @@ static void vt1211_init_client(struct i2c_client *client)
|
||||
{
|
||||
struct vt1211_data *data = client->data;
|
||||
|
||||
data->vrm = DEFAULT_VRM;
|
||||
data->vrm = 91;
|
||||
/* set "default" interrupt mode for alarms, which isn't the default */
|
||||
vt1211_write_value(client, VT1211_REG_TEMP1_CONFIG, 0);
|
||||
vt1211_write_value(client, VT1211_REG_TEMP2_CONFIG, 0);
|
||||
|
||||
@@ -451,7 +451,7 @@ static void vt8231_init_client(struct i2c_client *client)
|
||||
{
|
||||
struct vt8231_data *data = client->data;
|
||||
|
||||
data->vrm = DEFAULT_VRM;
|
||||
data->vrm = 91;
|
||||
/* set "default" interrupt mode for alarms, which isn't the default */
|
||||
vt8231_write_value(client, VT8231_REG_TEMP1_CONFIG, 0);
|
||||
vt8231_write_value(client, VT8231_REG_TEMP2_CONFIG, 0);
|
||||
|
||||
@@ -51,8 +51,6 @@
|
||||
to avoid floating point in the kernel.
|
||||
*/
|
||||
|
||||
#define DEFAULT_VRM 82
|
||||
|
||||
static inline int vid_from_reg(int val, int vrm)
|
||||
{
|
||||
int vid;
|
||||
|
||||
Reference in new issue
Block a user