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
d5ac816f
Commit
d5ac816f
authored
May 07, 2019
by
Forest Godfrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up variable names for updated mangOH Red driver.
parent
efa5398f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mangoh_red_board.c
linux_kernel_modules/mangoh/mangoh_red_board.c
+6
-6
No files found.
linux_kernel_modules/mangoh/mangoh_red_board.c
View file @
d5ac816f
...
...
@@ -10,7 +10,7 @@
#include <linux/platform_data/at24.h>
#include <linux/ctype.h>
#include
<ai2c_platform_data.h>
#include
"../ai2c_module/linux_driver/ai2c_platform_data.h"
#include "ltc294x-platform-data.h"
#include "bq24190-platform-data.h"
#include "bq27xxx_battery.h"
...
...
@@ -324,7 +324,7 @@ static int mangoh_red_probe(struct platform_device* pdev)
#endif
/* ENABLE_IOT_SLOT */
struct
gpio_chip
*
gpio_expander
;
struct
i2c_adapter
*
i2c_adapter_primary
,
*
i2c_adapter_gpio_exp
=
NULL
,
*
i2c_adapter_batt_charger
=
NULL
;
*
i2c_adapter_batt_charger
=
NULL
,
*
i2c_adapter_ai2c
=
NULL
;
dev_info
(
&
pdev
->
dev
,
"%s(): probe
\n
"
,
__func__
);
...
...
@@ -402,8 +402,8 @@ static int mangoh_red_probe(struct platform_device* pdev)
/* Map the Arduino I2C keyboard */
dev_dbg
(
&
pdev
->
dev
,
"mapping arduino i2c keyboard
\n
"
);
other_adapter
=
i2c_get_adapter
(
MANGOH_RED_I2C_BUS_AI2C_KBD
);
if
(
!
other_adapter
)
{
i2c_adapter_ai2c
=
i2c_get_adapter
(
MANGOH_RED_I2C_BUS_AI2C_KBD
);
if
(
!
i2c_adapter_ai2c
)
{
dev_err
(
&
pdev
->
dev
,
"Couldn't get I2C bus %d to add the AI2C keyboard.
\n
"
,
MANGOH_RED_I2C_BUS_GPIO_EXPANDER
);
...
...
@@ -411,8 +411,8 @@ static int mangoh_red_probe(struct platform_device* pdev)
goto
cleanup
;
}
mangoh_red_driver_data
.
ai2c_keyboard
=
i2c_new_device
(
other_adapter
,
&
mangoh_red_ai2c_keyboard_devinfo
);
i2c_put_adapter
(
other_adapter
);
i2c_new_device
(
i2c_adapter_ai2c
,
&
mangoh_red_ai2c_keyboard_devinfo
);
i2c_put_adapter
(
i2c_adapter_ai2c
);
if
(
!
mangoh_red_driver_data
.
ai2c_keyboard
)
{
dev_err
(
&
pdev
->
dev
,
"Failed to register %s
\n
"
,
mangoh_red_gpio_expander_devinfo
.
type
);
...
...
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