Skip to content

Commit 832edbf

Browse files
committed
drivers/sen5x: change header guard to #pragma once
1 parent 14fc6c0 commit 832edbf

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

drivers/include/sen5x.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
* directory for more details.
77
*/
88

9-
#ifndef SEN5X_H
10-
#define SEN5X_H
9+
#pragma once
1110

1211
/**
1312
* @defgroup drivers_sen5x Sensirion Embedded I2C SEN5x Driver
@@ -327,4 +326,3 @@ void sen5x_get_voc_state(const sen5x_t *dev, uint8_t *state, uint8_t state_size)
327326
#endif
328327

329328
/** @} */
330-
#endif /* SEN5X_H */

drivers/sen5x/include/sen5x_constants.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
* directory for more details.
77
*/
88

9-
#ifndef SEN5X_CONSTANTS_H
10-
#define SEN5X_CONSTANTS_H
9+
#pragma once
1110

1211
/**
1312
* @ingroup drivers_sen5x
@@ -35,4 +34,3 @@ extern "C" {
3534
#endif
3635

3736
/** @} */
38-
#endif /* SEN5X_CONSTANTS_H */

drivers/sen5x/include/sen5x_params.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
* directory for more details.
77
*/
88

9-
#ifndef SEN5X_PARAMS_H
10-
#define SEN5X_PARAMS_H
9+
#pragma once
1110

1211
/**
1312
* @ingroup drivers_sen5x
@@ -90,4 +89,3 @@ static const saul_reg_info_t sen5x_saul_info[] =
9089
#endif
9190

9291
/** @} */
93-
#endif /* SEN5X_PARAMS_H */

0 commit comments

Comments
 (0)