mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
change algo-bit timeout from a number to a HZ
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1645 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
d88451b2d1
commit
91d6c425d1
5 files changed
+6
-5
No files matched your search
@@ -63,6 +63,7 @@ static int i810_supported[] = {PCI_DEVICE_ID_INTEL_82810_IG1,
|
||||
PCI_DEVICE_ID_INTEL_82810_IG3,
|
||||
0x7125,
|
||||
PCI_DEVICE_ID_INTEL_82815_2,
|
||||
0x2562,
|
||||
0 };
|
||||
|
||||
/* GPIO register locations */
|
||||
@@ -90,7 +91,7 @@ static int i810_supported[] = {PCI_DEVICE_ID_INTEL_82810_IG1,
|
||||
|
||||
/* delays */
|
||||
#define CYCLE_DELAY 10
|
||||
#define TIMEOUT 50
|
||||
#define TIMEOUT (HZ / 2)
|
||||
|
||||
#ifdef MODULE
|
||||
static
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
/* delays */
|
||||
#define CYCLE_DELAY 10
|
||||
#define TIMEOUT 50
|
||||
#define TIMEOUT (HZ / 2)
|
||||
|
||||
#ifdef MODULE
|
||||
static
|
||||
|
||||
@@ -123,7 +123,7 @@ static struct i2c_algo_bit_data tsunami_i2c_bit_data = {
|
||||
bit_tsunami_setscl,
|
||||
bit_tsunami_getsda,
|
||||
bit_tsunami_getscl,
|
||||
10, 10, 50 /* delays/timeout */
|
||||
10, 10, HZ/2 /* delays/timeout */
|
||||
};
|
||||
|
||||
static struct i2c_adapter tsunami_i2c_adapter = {
|
||||
|
||||
@@ -114,7 +114,7 @@ static struct i2c_algo_bit_data bit_data = {
|
||||
bit_via_setscl,
|
||||
bit_via_getsda,
|
||||
bit_via_getscl,
|
||||
5, 5, 100, /*waits, timeout */
|
||||
5, 5, HZ, /*waits, timeout */
|
||||
};
|
||||
|
||||
static struct i2c_adapter bit_via_ops = {
|
||||
|
||||
@@ -70,7 +70,7 @@ MODULE_LICENSE("GPL");
|
||||
|
||||
/* delays */
|
||||
#define CYCLE_DELAY 10
|
||||
#define TIMEOUT 50
|
||||
#define TIMEOUT (HZ / 2)
|
||||
|
||||
#ifdef MODULE
|
||||
static
|
||||
|
||||
Reference in new issue
Block a user