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
90ba0813
Commit
90ba0813
authored
Nov 24, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/pfuze100' into regulator-linus
parents
3981560c
88baf714
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
drivers/regulator/pfuze100-regulator.c
drivers/regulator/pfuze100-regulator.c
+9
-3
No files found.
drivers/regulator/pfuze100-regulator.c
View file @
90ba0813
...
...
@@ -308,9 +308,15 @@ static int pfuze_identify(struct pfuze_chip *pfuze_chip)
if
(
ret
)
return
ret
;
if
(
value
&
0x0f
)
{
dev_warn
(
pfuze_chip
->
dev
,
"Illegal ID: %x
\n
"
,
value
);
return
-
ENODEV
;
switch
(
value
&
0x0f
)
{
/* Freescale misprogrammed 1-3% of parts prior to week 8 of 2013 as ID=8 */
case
0x8
:
dev_info
(
pfuze_chip
->
dev
,
"Assuming misprogrammed ID=0x8"
);
case
0x0
:
break
;
default:
dev_warn
(
pfuze_chip
->
dev
,
"Illegal ID: %x
\n
"
,
value
);
return
-
ENODEV
;
}
ret
=
regmap_read
(
pfuze_chip
->
regmap
,
PFUZE100_REVID
,
&
value
);
...
...
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