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
8b8b773e
Commit
8b8b773e
authored
Jan 23, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit 'spi/topic/sc18is602' into spi-linus
parents
341e6df6
463654ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
drivers/spi/spi-sc18is602.c
drivers/spi/spi-sc18is602.c
+1
-7
No files found.
drivers/spi/spi-sc18is602.c
View file @
8b8b773e
...
...
@@ -183,18 +183,11 @@ static int sc18is602_setup_transfer(struct sc18is602 *hw, u32 hz, u8 mode)
static
int
sc18is602_check_transfer
(
struct
spi_device
*
spi
,
struct
spi_transfer
*
t
,
int
tlen
)
{
int
bpw
;
uint32_t
hz
;
if
(
t
&&
t
->
len
+
tlen
>
SC18IS602_BUFSIZ
)
return
-
EINVAL
;
bpw
=
spi
->
bits_per_word
;
if
(
t
&&
t
->
bits_per_word
)
bpw
=
t
->
bits_per_word
;
if
(
bpw
!=
8
)
return
-
EINVAL
;
hz
=
spi
->
max_speed_hz
;
if
(
t
&&
t
->
speed_hz
)
hz
=
t
->
speed_hz
;
...
...
@@ -312,6 +305,7 @@ static int sc18is602_probe(struct i2c_client *client,
}
master
->
bus_num
=
client
->
adapter
->
nr
;
master
->
mode_bits
=
SPI_CPHA
|
SPI_CPOL
|
SPI_LSB_FIRST
;
master
->
bits_per_word_mask
=
SPI_BPW_MASK
(
8
);
master
->
setup
=
sc18is602_setup
;
master
->
transfer_one_message
=
sc18is602_transfer_one
;
master
->
dev
.
of_node
=
np
;
...
...
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