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
280d2300
Commit
280d2300
authored
Jan 07, 2015
by
Wolfram Sang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2c: axxia: make use of the new infrastructure for quirks
Signed-off-by:
Wolfram Sang
<
wsa@the-dreams.de
>
parent
b94c820f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
drivers/i2c/busses/i2c-axxia.c
drivers/i2c/busses/i2c-axxia.c
+6
-5
No files found.
drivers/i2c/busses/i2c-axxia.c
View file @
280d2300
...
...
@@ -336,11 +336,6 @@ static int axxia_i2c_xfer_msg(struct axxia_i2c_dev *idev, struct i2c_msg *msg)
u32
addr_1
,
addr_2
;
int
ret
;
if
(
msg
->
len
>
255
)
{
dev_warn
(
idev
->
dev
,
"unsupported length %u
\n
"
,
msg
->
len
);
return
-
EINVAL
;
}
idev
->
msg
=
msg
;
idev
->
msg_xfrd
=
0
;
idev
->
msg_err
=
0
;
...
...
@@ -454,6 +449,11 @@ static const struct i2c_algorithm axxia_i2c_algo = {
.
functionality
=
axxia_i2c_func
,
};
static
struct
i2c_adapter_quirks
axxia_i2c_quirks
=
{
.
max_read_len
=
255
,
.
max_write_len
=
255
,
};
static
int
axxia_i2c_probe
(
struct
platform_device
*
pdev
)
{
struct
device_node
*
np
=
pdev
->
dev
.
of_node
;
...
...
@@ -511,6 +511,7 @@ static int axxia_i2c_probe(struct platform_device *pdev)
strlcpy
(
idev
->
adapter
.
name
,
pdev
->
name
,
sizeof
(
idev
->
adapter
.
name
));
idev
->
adapter
.
owner
=
THIS_MODULE
;
idev
->
adapter
.
algo
=
&
axxia_i2c_algo
;
idev
->
adapter
.
quirks
=
&
axxia_i2c_quirks
;
idev
->
adapter
.
dev
.
parent
=
&
pdev
->
dev
;
idev
->
adapter
.
dev
.
of_node
=
pdev
->
dev
.
of_node
;
...
...
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