[PATCH] automatic VRM detection part2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Rudolf:

* Rudolf Marek <R.Marek at sh.cvut.cz> [2004-07-22 10:51:24 +0200]:
> 
> Hello,
> 
> This is second part, which just adds the functionality to existing code
> base, also including support of vid inputs for it8712 chip.

<snip>

One small comment:

> @@ -959,7 +956,7 @@
> 
>  	vid = asb100_read_value(client, ASB100_REG_VID_FANDIV) & 0x0f;
>  	vid |= (asb100_read_value(client, ASB100_REG_CHIPID) & 0x01) << 4;
> -	data->vrm = ASB100_DEFAULT_VRM;
> +	data->vrm = i2c_which_vrm();
>  	vid = vid_from_reg(vid, data->vrm);
> 
>  	/* Start monitoring */
> diff -Naur d/drivers/i2c/chips/it87.c c/drivers/i2c/chips/it87.c

Why not this instead?  E.g.

	if (!(data->vrm = i2c_which_vrm()))
		data->vrm = ASB100_DEFAULT_VRM;

That way, non x86 or some x86 that isn't recognized might fall back
and still get it right, or at least work the same as it used to.

Regards,

-- 
Mark M. Hoffman
mhoffman at lightlink.com



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux