Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e6dffc04
Commit
e6dffc04
authored
Mar 17, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] i2c i2c-i801.c: fix up the pci id matching, and change to use proper pci ids.
parent
f8770ea0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
20 deletions
+7
-20
drivers/i2c/busses/i2c-i801.c
drivers/i2c/busses/i2c-i801.c
+7
-20
No files found.
drivers/i2c/busses/i2c-i801.c
View file @
e6dffc04
...
...
@@ -55,21 +55,6 @@ MODULE_LICENSE("GPL");
#define HAVE_PEC
#endif
#ifndef PCI_DEVICE_ID_INTEL_82801CA_SMBUS
#define PCI_DEVICE_ID_INTEL_82801CA_SMBUS 0x2483
#endif
#ifndef PCI_DEVICE_ID_INTEL_82801DB_SMBUS
#define PCI_DEVICE_ID_INTEL_82801DB_SMBUS 0x24C3
#endif
static
int
supported
[]
=
{
PCI_DEVICE_ID_INTEL_82801AA_3
,
PCI_DEVICE_ID_INTEL_82801AB_3
,
PCI_DEVICE_ID_INTEL_82801BA_2
,
PCI_DEVICE_ID_INTEL_82801CA_SMBUS
,
PCI_DEVICE_ID_INTEL_82801DB_SMBUS
,
0
};
/* I801 SMBus address offsets */
#define SMBHSTSTS (0 + i801_smba)
#define SMBHSTCNT (2 + i801_smba)
...
...
@@ -135,7 +120,6 @@ static int isich4;
static
int
i801_setup
(
struct
pci_dev
*
dev
)
{
int
error_return
=
0
;
int
*
num
=
supported
;
unsigned
char
temp
;
/* Note: we keep on searching until we have found 'function 3' */
...
...
@@ -143,7 +127,10 @@ static int i801_setup(struct pci_dev *dev)
return
-
ENODEV
;
I801_dev
=
dev
;
isich4
=
*
num
==
PCI_DEVICE_ID_INTEL_82801DB_SMBUS
;
if
(
dev
->
device
==
PCI_DEVICE_ID_INTEL_82801DB_3
)
isich4
=
1
;
else
isich4
=
0
;
/* Determine the address of the SMBus areas */
if
(
force_addr
)
{
...
...
@@ -290,7 +277,7 @@ int i801_block_transaction(union i2c_smbus_data *data, char read_write,
hostc
|
SMBHSTCFG_I2C_EN
);
}
else
{
dev_err
(
&
I801_dev
->
dev
,
"I2C_SMBUS_I2C_BLOCK_READ not
supported
!
\n
"
);
"I2C_SMBUS_I2C_BLOCK_READ not
DB
!
\n
"
);
return
-
1
;
}
}
...
...
@@ -607,13 +594,13 @@ static struct pci_device_id i801_ids[] __devinitdata = {
},
{
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
device
=
PCI_DEVICE_ID_INTEL_82801CA_
SMBUS
,
.
device
=
PCI_DEVICE_ID_INTEL_82801CA_
3
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
device
=
PCI_DEVICE_ID_INTEL_82801DB_
SMBUS
,
.
device
=
PCI_DEVICE_ID_INTEL_82801DB_
3
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment