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
d0fd2bf8
Commit
d0fd2bf8
authored
Feb 14, 2018
by
David Frey
Committed by
David Clark
Feb 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation in mangoh kernel module
parent
d6559768
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
mangoh_red.c
linux_kernel_modules/mangoh/mangoh_red.c
+18
-10
No files found.
linux_kernel_modules/mangoh/mangoh_red.c
View file @
d0fd2bf8
...
...
@@ -53,7 +53,8 @@ static void mangoh_red_led_release(struct device *dev);
static
void
mangoh_red_iot_slot_release
(
struct
device
*
dev
);
static
int
mangoh_red_iot_slot_request_i2c
(
struct
i2c_adapter
**
adapter
);
static
int
mangoh_red_iot_slot_release_i2c
(
struct
i2c_adapter
**
adapter
);
static
int
mangoh_red_iot_slot_request_spi
(
struct
spi_master
**
spi_master
,
int
*
cs
);
static
int
mangoh_red_iot_slot_request_spi
(
struct
spi_master
**
spi_master
,
int
*
cs
);
static
int
mangoh_red_iot_slot_release_spi
(
void
);
static
int
mangoh_red_iot_slot_request_sdio
(
void
);
static
int
mangoh_red_iot_slot_release_sdio
(
void
);
...
...
@@ -161,7 +162,8 @@ static struct i2c_board_info mangoh_red_lsm6ds3_devinfo = {
static
struct
i2c_board_info
mangoh_red_pressure_devinfo
=
{
I2C_BOARD_INFO
(
"bmp280"
,
0x76
),
};
/*
#if 0
static struct ltc294x_platform_data mangoh_red_battery_gauge_platform_data = {
.r_sense = 18,
.prescaler_exp = 32,
...
...
@@ -171,7 +173,8 @@ static struct i2c_board_info mangoh_red_battery_gauge_devinfo = {
I2C_BOARD_INFO("ltc2942", 0x64),
.platform_data = &mangoh_red_battery_gauge_platform_data,
};
*/
#endif
static
struct
i2c_board_info
mangoh_red_battery_charger_devinfo
=
{
I2C_BOARD_INFO
(
"bq24190"
,
0x6B
),
};
...
...
@@ -348,10 +351,12 @@ static int mangoh_red_probe(struct platform_device* pdev)
goto
cleanup
;
}
// if (mangoh_red_pdata.board_rev != MANGOH_RED_BOARD_REV_DV3) {
#if 0
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_BATTERY_CHARGER);
dev_dbg(&pdev->dev, "mapping ltc2942 battery gauge\n");
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_BATTERY_CHARGER);
...
...
@@ -367,7 +372,7 @@ static int mangoh_red_probe(struct platform_device* pdev)
goto cleanup;
}
}
*/
#endif
/*
* TODO:
* 3503 USB Hub: 0x08
...
...
@@ -398,8 +403,10 @@ static int mangoh_red_remove(struct platform_device* pdev)
dev_info
(
&
pdev
->
dev
,
"Removing mangoh red platform device
\n
"
);
// if (mangoh_red_pdata.board_rev != MANGOH_RED_BOARD_REV_DV3)
// try_unregister_i2c_device(dd->battery_gauge);
#if 0
if (mangoh_red_pdata.board_rev != MANGOH_RED_BOARD_REV_DV3)
try_unregister_i2c_device(dd->battery_gauge);
#endif
try_unregister_i2c_device
(
dd
->
battery_charger
);
try_unregister_i2c_device
(
dd
->
pressure
);
...
...
@@ -437,7 +444,8 @@ static int mangoh_red_iot_slot_release_i2c(struct i2c_adapter **adapter)
return
0
;
}
static
int
mangoh_red_iot_slot_request_spi
(
struct
spi_master
**
spi_master
,
int
*
cs
)
static
int
mangoh_red_iot_slot_request_spi
(
struct
spi_master
**
spi_master
,
int
*
cs
)
{
*
spi_master
=
spi_busnum_to_master
(
PRIMARY_SPI_BUS
);
*
cs
=
0
;
...
...
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