[PATCH] hwmon: hwmon vs i2c, second round (07/11)
The only part left in i2c-sensor is the VRM/VRD/VID handling code. This is in no way related to i2c, so it doesn't belong there. Move the code to hwmon, where it belongs. Note that not all hardware monitoring drivers do VRM/VRD/VID operations, so less drivers depend on hwmon-vid than there were depending on i2c-sensor. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Esse commit está contido em:

commit de
Greg Kroah-Hartman

pai
f4b5026120
commit
303760b44a
@@ -39,8 +39,8 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/i2c-vid.h>
|
||||
#include <linux/hwmon.h>
|
||||
#include <linux/hwmon-vid.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/jiffies.h>
|
||||
@@ -973,7 +973,7 @@ static void asb100_init_client(struct i2c_client *client)
|
||||
|
||||
vid = asb100_read_value(client, ASB100_REG_VID_FANDIV) & 0x0f;
|
||||
vid |= (asb100_read_value(client, ASB100_REG_CHIPID) & 0x01) << 4;
|
||||
data->vrm = i2c_which_vrm();
|
||||
data->vrm = vid_which_vrm();
|
||||
vid = vid_from_reg(vid, data->vrm);
|
||||
|
||||
/* Start monitoring */
|
||||
|
Referência em uma nova issue
Block a user