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
nexedi
linux
Commits
e7aba607
Commit
e7aba607
authored
Jun 10, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] I2C: coding style updates for i2c-iop3xx driver
parent
7323fe38
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
186 additions
and
217 deletions
+186
-217
drivers/i2c/i2c-iop3xx.c
drivers/i2c/i2c-iop3xx.c
+137
-166
drivers/i2c/i2c-iop3xx.h
drivers/i2c/i2c-iop3xx.h
+49
-51
No files found.
drivers/i2c/i2c-iop3xx.c
View file @
e7aba607
This diff is collapsed.
Click to expand it.
drivers/i2c/i2c-iop3xx.h
View file @
e7aba607
...
...
@@ -87,15 +87,13 @@
#define I2C_ERR_ALD (I2C_ERR+1)
typedef
volatile
u32
*
r32
;
struct
iop3xx_biu
{
/* Bus Interface Unit - the hardware */
/* physical hardware defs - regs*/
r32
CR
;
r32
SR
;
r32
SAR
;
r32
DBR
;
r32
BMR
;
u32
*
CR
;
u32
*
SR
;
u32
*
SAR
;
u32
*
DBR
;
u32
*
BMR
;
/* irq bit vector */
u32
irq
;
/* stored flags */
...
...
@@ -111,10 +109,10 @@ struct i2c_algo_iop3xx_data {
struct
iop3xx_biu
*
biu
;
};
#define REGION_START(
adap )
((u32)((adap)->biu->CR))
#define REGION_END(
adap )
((u32)((adap)->biu->BMR+1))
#define REGION_LENGTH(
adap )
(REGION_END(adap)-REGION_START(adap))
#define REGION_START(
adap)
((u32)((adap)->biu->CR))
#define REGION_END(
adap)
((u32)((adap)->biu->BMR+1))
#define REGION_LENGTH(
adap)
(REGION_END(adap)-REGION_START(adap))
#define IRQ_STATUS_MASK(
adap )
(1<<adap->biu->irq)
#define IRQ_STATUS_MASK(
adap)
(1<<adap->biu->irq)
#endif
/* I2C_IOP3XX_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