Skip to content

Commit e24b925

Browse files
committed
driver: remove two consecutives empty lines
1 parent 99230a9 commit e24b925

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

drivers/ads1115/ads1115.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ static uint16_t _build_config_reg(const ads1115_params_t *params)
7373
return conf;
7474
}
7575

76-
7776
int ads1115_init(ads1115_t *dev, const ads1115_params_t *params)
7877
{
7978
assert(dev && params);
@@ -145,7 +144,6 @@ int ads1115_set_ain_ch_input(ads1115_t *dev, ads1115_mux_t mux)
145144
res = ADS1115_OK;
146145
dev->params.mux = mux;
147146

148-
149147
release:
150148
i2c_release(DEV);
151149
return res;

drivers/ads1115/include/ads1115_internal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919
* @}
2020
*/
2121

22-
2322
#ifdef __cplusplus
2423
extern "C" {
2524
#endif
2625

27-
2826
/**
2927
* @name ADS1115 registers
3028
* @{
@@ -34,7 +32,6 @@ extern "C" {
3432
#define ADS1115_REG_CONFIG (0x01) /**< Configuration register */
3533
/** @} */
3634

37-
3835
/**
3936
* @name ADS1115 configuration register bits
4037
* @{
@@ -50,7 +47,6 @@ extern "C" {
5047
#define ADS1115_CONF_COMP_QUEUE_BIT (0) /**< Comparator queue */
5148
/** @} */
5249

53-
5450
#ifdef __cplusplus
5551
}
5652
#endif

drivers/ads1115/include/ads1115_params.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
extern "C" {
2727
#endif
2828

29-
3029
/**
3130
* @name Set default configuration parameters for the ADS1115 driver
3231
* @{
@@ -81,8 +80,6 @@ static const ads1115_params_t ads1115_params[] = {
8180
ADS1115_PARAMS
8281
};
8382

84-
85-
8683
#ifdef __cplusplus
8784
}
8885
#endif

drivers/include/ads1115.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* @author Baptiste Le Duc <[email protected]>
2323
*/
2424

25-
2625
#ifdef __cplusplus
2726
extern "C" {
2827
#endif
@@ -38,6 +37,7 @@ enum {
3837
ADS1115_NODEV = -2, /**< No device found on the bus */
3938
ADS1115_NODATA = -3, /**< No data available */
4039
};
40+
4141
/**
4242
* @brief Operational status bit in write operations
4343
*/
@@ -68,7 +68,6 @@ typedef enum {
6868
ADS1115_MUX_AIN3 = 7 /**<AIN3 single-ended input (AINp = AIN3 && AINn = GND) */
6969
} ads1115_mux_t;
7070

71-
7271
/**
7372
* @brief Programmable gain amplifier configuration
7473
*/
@@ -175,7 +174,6 @@ typedef struct {
175174
*/
176175
int ads1115_init(ads1115_t *dev, const ads1115_params_t *params);
177176

178-
179177
/**
180178
* @brief Sets the input channel for the ADS1115 device.
181179
*
@@ -198,7 +196,6 @@ int ads1115_set_ain_ch_input(ads1115_t *dev, ads1115_mux_t mux);
198196
*/
199197
int ads1115_read_conversion(ads1115_t *dev, uint16_t *value);
200198

201-
202199
/**
203200
* @brief Converts the digital value from the ADS1115 device to millivolts.
204201
*
@@ -209,7 +206,6 @@ int ads1115_read_conversion(ads1115_t *dev, uint16_t *value);
209206
*/
210207
int ads1115_convert_to_mv(ads1115_t *dev, uint16_t value);
211208

212-
213209
#ifdef __cplusplus
214210
}
215211
#endif

0 commit comments

Comments
 (0)