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
766e3c4a
Commit
766e3c4a
authored
Nov 18, 2002
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o i2c: fix up header cleanups: add include <linux/interrupt.h>
Also some cleanups wrt struct member initialization style.
parent
ebe1472e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
21 deletions
+25
-21
drivers/i2c/i2c-elektor.c
drivers/i2c/i2c-elektor.c
+25
-21
No files found.
drivers/i2c/i2c-elektor.c
View file @
766e3c4a
...
@@ -32,23 +32,27 @@
...
@@ -32,23 +32,27 @@
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/version.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/pci.h>
#include <asm/irq.h>
#include <linux/wait.h>
#include <asm/io.h>
#include <linux/i2c.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-pcf.h>
#include <linux/i2c-algo-pcf.h>
#include <linux/i2c-elektor.h>
#include <linux/i2c-elektor.h>
#include <asm/io.h>
#include <asm/irq.h>
#include "i2c-pcf8584.h"
#include "i2c-pcf8584.h"
#define DEFAULT_BASE 0x330
#define DEFAULT_BASE 0x330
static
int
base
=
0
;
static
int
base
;
static
int
irq
=
0
;
static
int
irq
;
static
int
clock
=
0x1c
;
static
int
clock
=
0x1c
;
static
int
own
=
0x55
;
static
int
own
=
0x55
;
static
int
mmapped
=
0
;
static
int
mmapped
;
static
int
i2c_debug
=
0
;
static
int
i2c_debug
;
/* vdovikin: removed static struct i2c_pcf_isa gpi; code -
/* vdovikin: removed static struct i2c_pcf_isa gpi; code -
this module in real supports only one device, due to missing arguments
this module in real supports only one device, due to missing arguments
...
@@ -199,24 +203,24 @@ static void pcf_isa_dec_use(struct i2c_adapter *adap)
...
@@ -199,24 +203,24 @@ static void pcf_isa_dec_use(struct i2c_adapter *adap)
* This is only done when more than one hardware adapter is supported.
* This is only done when more than one hardware adapter is supported.
*/
*/
static
struct
i2c_algo_pcf_data
pcf_isa_data
=
{
static
struct
i2c_algo_pcf_data
pcf_isa_data
=
{
NULL
,
.
setpcf
=
pcf_isa_setbyte
,
pcf_isa_setbyte
,
.
getpcf
=
pcf_isa_getbyte
,
pcf_isa_getbyte
,
.
getown
=
pcf_isa_getown
,
pcf_isa_getown
,
.
getclock
=
pcf_isa_getclock
,
pcf_isa_getclock
,
.
waitforpin
=
pcf_isa_waitforpin
,
pcf_isa_waitforpin
,
.
udelay
=
10
,
10
,
10
,
100
,
/* waits, timeout */
.
mdelay
=
10
,
.
timeout
=
100
,
};
};
static
struct
i2c_adapter
pcf_isa_ops
=
{
static
struct
i2c_adapter
pcf_isa_ops
=
{
"PCF8584 ISA adapter"
,
.
name
=
"PCF8584 ISA adapter"
,
I2C_HW_P_ELEK
,
.
id
=
I2C_HW_P_ELEK
,
NULL
,
.
algo_data
=
&
pcf_isa_data
,
&
pcf_isa_data
,
.
inc_use
=
pcf_isa_inc_use
,
pcf_isa_inc_use
,
.
dec_use
=
pcf_isa_dec_use
,
pcf_isa_dec_use
,
.
client_register
=
pcf_isa_reg
,
pcf_isa_reg
,
.
client_unregister
=
pcf_isa_unreg
,
pcf_isa_unreg
,
};
};
int
__init
i2c_pcfisa_init
(
void
)
int
__init
i2c_pcfisa_init
(
void
)
...
...
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