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
dcfae049
Commit
dcfae049
authored
Sep 22, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] I2C: remove I2C_VERSION and I2C_DATE as they make no sense in the kernel tree.
parent
6c16fa73
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
13 additions
and
24 deletions
+13
-24
drivers/i2c/busses/i2c-ali1535.c
drivers/i2c/busses/i2c-ali1535.c
+0
-1
drivers/i2c/busses/i2c-ali15x3.c
drivers/i2c/busses/i2c-ali15x3.c
+0
-1
drivers/i2c/busses/i2c-elektor.c
drivers/i2c/busses/i2c-elektor.c
+9
-9
drivers/i2c/busses/i2c-i801.c
drivers/i2c/busses/i2c-i801.c
+0
-1
drivers/i2c/busses/i2c-piix4.c
drivers/i2c/busses/i2c-piix4.c
+0
-1
drivers/i2c/busses/i2c-rpx.c
drivers/i2c/busses/i2c-rpx.c
+1
-1
drivers/i2c/busses/i2c-sis5595.c
drivers/i2c/busses/i2c-sis5595.c
+0
-1
drivers/i2c/busses/i2c-sis630.c
drivers/i2c/busses/i2c-sis630.c
+0
-1
drivers/i2c/busses/i2c-velleman.c
drivers/i2c/busses/i2c-velleman.c
+2
-2
drivers/i2c/busses/i2c-via.c
drivers/i2c/busses/i2c-via.c
+0
-1
drivers/i2c/i2c-dev.c
drivers/i2c/i2c-dev.c
+1
-2
include/linux/i2c.h
include/linux/i2c.h
+0
-3
No files found.
drivers/i2c/busses/i2c-ali1535.c
View file @
dcfae049
...
...
@@ -525,7 +525,6 @@ static struct pci_driver ali1535_driver = {
static
int
__init
i2c_ali1535_init
(
void
)
{
printk
(
KERN_INFO
"i2c-ali1535 version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
return
pci_module_init
(
&
ali1535_driver
);
}
...
...
drivers/i2c/busses/i2c-ali15x3.c
View file @
dcfae049
...
...
@@ -517,7 +517,6 @@ static struct pci_driver ali15x3_driver = {
static
int
__init
i2c_ali15x3_init
(
void
)
{
printk
(
"i2c-ali15x3.o version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
return
pci_module_init
(
&
ali15x3_driver
);
}
...
...
drivers/i2c/busses/i2c-elektor.c
View file @
dcfae049
...
...
@@ -77,7 +77,7 @@ static void pcf_isa_setbyte(void *data, int ctl, int val)
val
|=
I2C_PCF_ENI
;
}
DEB3
(
printk
(
KERN_DEBUG
"i2c-elektor
.o
: Write 0x%X 0x%02X
\n
"
,
address
,
val
&
255
));
DEB3
(
printk
(
KERN_DEBUG
"i2c-elektor: Write 0x%X 0x%02X
\n
"
,
address
,
val
&
255
));
switch
(
mmapped
)
{
case
0
:
/* regular I/O */
...
...
@@ -98,7 +98,7 @@ static int pcf_isa_getbyte(void *data, int ctl)
int
address
=
ctl
?
(
base
+
1
)
:
base
;
int
val
=
mmapped
?
readb
(
address
)
:
inb
(
address
);
DEB3
(
printk
(
KERN_DEBUG
"i2c-elektor
.o
: Read 0x%X 0x%02X
\n
"
,
address
,
val
));
DEB3
(
printk
(
KERN_DEBUG
"i2c-elektor: Read 0x%X 0x%02X
\n
"
,
address
,
val
));
return
(
val
);
}
...
...
@@ -143,14 +143,14 @@ static int pcf_isa_init(void)
if
(
!
mmapped
)
{
if
(
!
request_region
(
base
,
2
,
"i2c (isa bus adapter)"
))
{
printk
(
KERN_ERR
"i2c-elektor
.o
: requested I/O region (0x%X:2) "
"i2c-elektor: requested I/O region (0x%X:2) "
"is in use.
\n
"
,
base
);
return
-
ENODEV
;
}
}
if
(
irq
>
0
)
{
if
(
request_irq
(
irq
,
pcf_isa_handler
,
0
,
"PCF8584"
,
0
)
<
0
)
{
printk
(
KERN_ERR
"i2c-elektor
.o
: Request irq%d failed
\n
"
,
irq
);
printk
(
KERN_ERR
"i2c-elektor: Request irq%d failed
\n
"
,
irq
);
irq
=
0
;
}
else
enable_irq
(
irq
);
...
...
@@ -196,7 +196,7 @@ static int __init i2c_pcfisa_init(void)
/* yeap, we've found cypress, let's check config */
if
(
!
pci_read_config_byte
(
cy693_dev
,
0x47
,
&
config
))
{
DEB3
(
printk
(
KERN_DEBUG
"i2c-elektor
.o
: found cy82c693, config register 0x47 = 0x%02x.
\n
"
,
config
));
DEB3
(
printk
(
KERN_DEBUG
"i2c-elektor: found cy82c693, config register 0x47 = 0x%02x.
\n
"
,
config
));
/* UP2000 board has this register set to 0xe1,
but the most significant bit as seems can be
...
...
@@ -218,7 +218,7 @@ static int __init i2c_pcfisa_init(void)
8.25 MHz (PCI/4) clock
(this can be read from cypress) */
clock
=
I2C_PCF_CLK
|
I2C_PCF_TRNS90
;
printk
(
KERN_INFO
"i2c-elektor
.o
: found API UP2000 like board, will probe PCF8584 later.
\n
"
);
printk
(
KERN_INFO
"i2c-elektor: found API UP2000 like board, will probe PCF8584 later.
\n
"
);
}
}
}
...
...
@@ -227,11 +227,11 @@ static int __init i2c_pcfisa_init(void)
/* sanity checks for mmapped I/O */
if
(
mmapped
&&
base
<
0xc8000
)
{
printk
(
KERN_ERR
"i2c-elektor
.o
: incorrect base address (0x%0X) specified for mmapped I/O.
\n
"
,
base
);
printk
(
KERN_ERR
"i2c-elektor: incorrect base address (0x%0X) specified for mmapped I/O.
\n
"
,
base
);
return
-
ENODEV
;
}
printk
(
KERN_INFO
"i2c-elektor
.o: i2c pcf8584-isa adapter module version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
printk
(
KERN_INFO
"i2c-elektor
: i2c pcf8584-isa adapter driver
\n
"
);
if
(
base
==
0
)
{
base
=
DEFAULT_BASE
;
...
...
@@ -243,7 +243,7 @@ static int __init i2c_pcfisa_init(void)
if
(
i2c_pcf_add_bus
(
&
pcf_isa_ops
)
<
0
)
goto
fail
;
printk
(
KERN_ERR
"i2c-elektor
.o
: found device at %#x.
\n
"
,
base
);
printk
(
KERN_ERR
"i2c-elektor: found device at %#x.
\n
"
,
base
);
return
0
;
...
...
drivers/i2c/busses/i2c-i801.c
View file @
dcfae049
...
...
@@ -616,7 +616,6 @@ static struct pci_driver i801_driver = {
static
int
__init
i2c_i801_init
(
void
)
{
printk
(
KERN_INFO
"i2c-i801 version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
return
pci_module_init
(
&
i801_driver
);
}
...
...
drivers/i2c/busses/i2c-piix4.c
View file @
dcfae049
...
...
@@ -473,7 +473,6 @@ static struct pci_driver piix4_driver = {
static
int
__init
i2c_piix4_init
(
void
)
{
printk
(
KERN_INFO
"i2c-piix4 version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
return
pci_module_init
(
&
piix4_driver
);
}
...
...
drivers/i2c/busses/i2c-rpx.c
View file @
dcfae049
...
...
@@ -78,7 +78,7 @@ static struct i2c_adapter rpx_ops = {
int
__init
i2c_rpx_init
(
void
)
{
printk
(
"i2c-rpx.o: i2c MPC8xx module version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
printk
(
KERN_INFO
"i2c-rpx: i2c MPC8xx driver
\n
"
);
/* reset hardware to sane state */
rpx_iic_init
(
&
rpx_data
);
...
...
drivers/i2c/busses/i2c-sis5595.c
View file @
dcfae049
...
...
@@ -399,7 +399,6 @@ static struct pci_driver sis5595_driver = {
static
int
__init
i2c_sis5595_init
(
void
)
{
printk
(
KERN_INFO
"i2c-sis5595 version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
return
pci_module_init
(
&
sis5595_driver
);
}
...
...
drivers/i2c/busses/i2c-sis630.c
View file @
dcfae049
...
...
@@ -474,7 +474,6 @@ static struct pci_driver sis630_driver = {
static
int
__init
i2c_sis630_init
(
void
)
{
printk
(
"i2c-sis630.o version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
return
pci_module_init
(
&
sis630_driver
);
}
...
...
drivers/i2c/busses/i2c-velleman.c
View file @
dcfae049
...
...
@@ -120,7 +120,7 @@ static struct i2c_adapter bit_velle_ops = {
static
int
__init
i2c_bitvelle_init
(
void
)
{
printk
(
KERN_INFO
"i2c-velleman
.o: i2c Velleman K8000 adapter module version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
printk
(
KERN_INFO
"i2c-velleman
: i2c Velleman K8000 driver
\n
"
);
if
(
base
==
0
)
{
/* probe some values */
base
=
DEFAULT_BASE
;
...
...
@@ -140,7 +140,7 @@ static int __init i2c_bitvelle_init(void)
return
-
ENODEV
;
}
}
printk
(
KERN_DEBUG
"i2c-velleman
.o
: found device at %#x.
\n
"
,
base
);
printk
(
KERN_DEBUG
"i2c-velleman: found device at %#x.
\n
"
,
base
);
return
0
;
}
...
...
drivers/i2c/busses/i2c-via.c
View file @
dcfae049
...
...
@@ -165,7 +165,6 @@ static struct pci_driver vt586b_driver = {
static
int
__init
i2c_vt586b_init
(
void
)
{
printk
(
KERN_INFO
"i2c-via version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
return
pci_module_init
(
&
vt586b_driver
);
}
...
...
drivers/i2c/i2c-dev.c
View file @
dcfae049
...
...
@@ -505,8 +505,7 @@ static int __init i2c_dev_init(void)
{
int
res
;
printk
(
KERN_INFO
"i2c /dev entries driver module version %s (%s)
\n
"
,
I2C_VERSION
,
I2C_DATE
);
printk
(
KERN_INFO
"i2c /dev entries driver
\n
"
);
if
(
register_chrdev
(
I2C_MAJOR
,
"i2c"
,
&
i2cdev_fops
))
{
printk
(
KERN_ERR
"i2c-dev.o: unable to get major %d for i2c bus
\n
"
,
...
...
include/linux/i2c.h
View file @
dcfae049
...
...
@@ -28,9 +28,6 @@
#ifndef _LINUX_I2C_H
#define _LINUX_I2C_H
#define I2C_DATE "20021208"
#define I2C_VERSION "2.7.0"
#include <linux/module.h>
#include <linux/types.h>
#include <linux/i2c-id.h>
...
...
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