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
cdcd54fd
Commit
cdcd54fd
authored
Nov 06, 2018
by
David Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup bme680 driver modifications
- Remove trailing whitespace - Remove #if 1 ... #endif
parent
c8d6640a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bme680_core.c
linux_kernel_modules/bme680/bme680_core.c
+5
-5
No files found.
linux_kernel_modules/bme680/bme680_core.c
View file @
cdcd54fd
...
...
@@ -18,6 +18,7 @@
#include <linux/iio/sysfs.h>
#include <linux/version.h>
#include "bme680.h"
#define regmap_write_bits regmap_update_bits
struct
bme680_calib
{
...
...
@@ -92,7 +93,6 @@ static const struct iio_chan_spec bme680_channels[] = {
|
BIT
(
IIO_CHAN_INFO_OVERSAMPLING_RATIO
),
#endif
},
{
.
type
=
IIO_RESISTANCE
,
.
info_mask_separate
=
BIT
(
IIO_CHAN_INFO_PROCESSED
),
...
...
@@ -430,7 +430,6 @@ static u32 bme680_compensate_humid(struct bme680_data *data,
*
* Returns gas measurement in Ohm. Output value of "82986" represent 82986 ohms.
*/
#if 1
static
u32
bme680_compensate_gas
(
struct
bme680_data
*
data
,
u16
gas_res_adc
,
u8
gas_range
)
{
...
...
@@ -457,7 +456,7 @@ static u32 bme680_compensate_gas(struct bme680_data *data, u16 gas_res_adc,
return
calc_gas_res
;
}
#endif
/*
* Taken from Bosch BME680 API:
* https://github.com/BoschSensortec/BME680_driver/blob/63bb5336/bme680.c#L1002
...
...
@@ -708,7 +707,7 @@ static int bme680_read_humid(struct bme680_data *data,
*
val2
=
1000
;
return
IIO_VAL_FRACTIONAL
;
}
#if 1
static
int
bme680_read_gas
(
struct
bme680_data
*
data
,
int
*
val
)
{
...
...
@@ -767,7 +766,7 @@ static int bme680_read_gas(struct bme680_data *data,
*
val
=
bme680_compensate_gas
(
data
,
adc_gas_res
,
gas_range
);
return
IIO_VAL_INT
;
}
#endif
static
int
bme680_read_raw
(
struct
iio_dev
*
indio_dev
,
struct
iio_chan_spec
const
*
chan
,
int
*
val
,
int
*
val2
,
long
mask
)
...
...
@@ -808,6 +807,7 @@ static int bme680_read_raw(struct iio_dev *indio_dev,
return
-
EINVAL
;
}
}
#if 0
static int bme680_write_oversampling_ratio_temp(struct bme680_data *data,
int val)
...
...
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