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
f981c6cc
Commit
f981c6cc
authored
Mar 12, 2018
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'regmap/fix/i2c' and 'regmap/fix/volatile' into regmap-linus
parents
aa584bad
86effbe0
b8f9a03b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
drivers/base/regmap/regmap-i2c.c
drivers/base/regmap/regmap-i2c.c
+0
-4
drivers/base/regmap/regmap.c
drivers/base/regmap/regmap.c
+1
-1
No files found.
drivers/base/regmap/regmap-i2c.c
View file @
f981c6cc
...
...
@@ -217,8 +217,6 @@ static int regmap_i2c_smbus_i2c_write(void *context, const void *data,
if
(
count
<
1
)
return
-
EINVAL
;
if
(
count
>=
I2C_SMBUS_BLOCK_MAX
)
return
-
E2BIG
;
--
count
;
return
i2c_smbus_write_i2c_block_data
(
i2c
,
((
u8
*
)
data
)[
0
],
count
,
...
...
@@ -235,8 +233,6 @@ static int regmap_i2c_smbus_i2c_read(void *context, const void *reg,
if
(
reg_size
!=
1
||
val_size
<
1
)
return
-
EINVAL
;
if
(
val_size
>=
I2C_SMBUS_BLOCK_MAX
)
return
-
E2BIG
;
ret
=
i2c_smbus_read_i2c_block_data
(
i2c
,
((
u8
*
)
reg
)[
0
],
val_size
,
val
);
if
(
ret
==
val_size
)
...
...
drivers/base/regmap/regmap.c
View file @
f981c6cc
...
...
@@ -174,7 +174,7 @@ static bool regmap_volatile_range(struct regmap *map, unsigned int reg,
unsigned
int
i
;
for
(
i
=
0
;
i
<
num
;
i
++
)
if
(
!
regmap_volatile
(
map
,
reg
+
i
))
if
(
!
regmap_volatile
(
map
,
reg
+
regmap_get_offset
(
map
,
i
)
))
return
false
;
return
true
;
...
...
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