BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
20ad5ed4
Commit
20ad5ed4
authored
Nov 16, 2017
by
David Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use more appropriate define
parent
f1868c9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mangoh_red.c
linux_kernel_modules/mangoh/mangoh_red.c
+4
-4
No files found.
linux_kernel_modules/mangoh/mangoh_red.c
View file @
20ad5ed4
...
...
@@ -309,10 +309,10 @@ static int mangoh_red_probe(struct platform_device* pdev)
/* Map the I2C BQ24296 driver: for now use the BQ24190 driver code */
dev_dbg
(
&
pdev
->
dev
,
"mapping bq24296 driver
\n
"
);
other_adapter
=
i2c_get_adapter
(
MANGOH_RED_I2C_BUS_
USB_HUB
);
other_adapter
=
i2c_get_adapter
(
MANGOH_RED_I2C_BUS_
BATTERY_CHARGER
);
if
(
!
other_adapter
)
{
dev_err
(
&
pdev
->
dev
,
"No I2C bus %d.
\n
"
,
MANGOH_RED_I2C_BUS_
USB_HUB
);
MANGOH_RED_I2C_BUS_
BATTERY_CHARGER
);
ret
=
-
ENODEV
;
goto
cleanup
;
}
...
...
@@ -329,10 +329,10 @@ static int mangoh_red_probe(struct platform_device* pdev)
if
(
mangoh_red_pdata
.
board_rev
!=
MANGOH_RED_BOARD_REV_DV3
)
{
/* Map the I2C ltc2942 battery gauge */
dev_dbg
(
&
pdev
->
dev
,
"mapping ltc2942 battery gauge
\n
"
);
other_adapter
=
i2c_get_adapter
(
MANGOH_RED_I2C_BUS_
USB_HUB
);
other_adapter
=
i2c_get_adapter
(
MANGOH_RED_I2C_BUS_
BATTERY_CHARGER
);
if
(
!
other_adapter
)
{
dev_err
(
&
pdev
->
dev
,
"No I2C bus %d.
\n
"
,
MANGOH_RED_I2C_BUS_
USB_HUB
);
MANGOH_RED_I2C_BUS_
BATTERY_CHARGER
);
ret
=
-
ENODEV
;
goto
cleanup
;
}
...
...
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