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
7ee405ea
Commit
7ee405ea
authored
Jan 07, 2015
by
Wolfram Sang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2c: powermac: make use of the new infrastructure for quirks
Signed-off-by:
Wolfram Sang
<
wsa@the-dreams.de
>
parent
afe90203
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
drivers/i2c/busses/i2c-powermac.c
drivers/i2c/busses/i2c-powermac.c
+4
-6
No files found.
drivers/i2c/busses/i2c-powermac.c
View file @
7ee405ea
...
...
@@ -153,12 +153,6 @@ static int i2c_powermac_master_xfer( struct i2c_adapter *adap,
int
read
;
int
addrdir
;
if
(
num
!=
1
)
{
dev_err
(
&
adap
->
dev
,
"Multi-message I2C transactions not supported
\n
"
);
return
-
EOPNOTSUPP
;
}
if
(
msgs
->
flags
&
I2C_M_TEN
)
return
-
EINVAL
;
read
=
(
msgs
->
flags
&
I2C_M_RD
)
!=
0
;
...
...
@@ -205,6 +199,9 @@ static const struct i2c_algorithm i2c_powermac_algorithm = {
.
functionality
=
i2c_powermac_func
,
};
static
struct
i2c_adapter_quirks
i2c_powermac_quirks
=
{
.
max_num_msgs
=
1
,
};
static
int
i2c_powermac_remove
(
struct
platform_device
*
dev
)
{
...
...
@@ -434,6 +431,7 @@ static int i2c_powermac_probe(struct platform_device *dev)
platform_set_drvdata
(
dev
,
adapter
);
adapter
->
algo
=
&
i2c_powermac_algorithm
;
adapter
->
quirks
=
&
i2c_powermac_quirks
;
i2c_set_adapdata
(
adapter
,
bus
);
adapter
->
dev
.
parent
=
&
dev
->
dev
;
...
...
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