Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KED Linux Kernel Fork
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KED Software Projects
Miscellaneous
KED Linux Kernel Fork
Commits
90ba0813
Commit
90ba0813
authored
11 years ago
by
Mark Brown
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'regulator/fix/pfuze100' into regulator-linus
parents
3981560c
88baf714
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/regulator/pfuze100-regulator.c
+9
-3
9 additions, 3 deletions
drivers/regulator/pfuze100-regulator.c
with
9 additions
and
3 deletions
drivers/regulator/pfuze100-regulator.c
+
9
−
3
View file @
90ba0813
...
@@ -308,9 +308,15 @@ static int pfuze_identify(struct pfuze_chip *pfuze_chip)
...
@@ -308,9 +308,15 @@ static int pfuze_identify(struct pfuze_chip *pfuze_chip)
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
if
(
value
&
0x0f
)
{
switch
(
value
&
0x0f
)
{
dev_warn
(
pfuze_chip
->
dev
,
"Illegal ID: %x
\n
"
,
value
);
/* Freescale misprogrammed 1-3% of parts prior to week 8 of 2013 as ID=8 */
return
-
ENODEV
;
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
);
ret
=
regmap_read
(
pfuze_chip
->
regmap
,
PFUZE100_REVID
,
&
value
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment