Skip to content

Commit 6b79c6c

Browse files
committed
Fix driver formatting options
Signed-off-by: Armando Visconti <armando.visconti@st.com>
1 parent db874fa commit 6b79c6c

2 files changed

Lines changed: 14 additions & 20 deletions

File tree

lis2mdl_reg.c

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2021 STMicroelectronics.
10+
* All rights reserved.
1111
*
12-
* This software component is licensed by ST under BSD 3-Clause license,
13-
* the "License"; You may not use this file except in compliance with the
14-
* License. You may obtain a copy of the License at:
15-
* opensource.org/licenses/BSD-3-Clause
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -125,7 +124,7 @@ float_t lis2mdl_from_lsb_to_celsius(int16_t lsb)
125124
/**
126125
* @brief These registers comprise a 3 group of 16-bit number and represent
127126
* hard-iron offset in order to compensate environmental effects.
128-
* Data format is the same of output data raw: twos complement
127+
* Data format is the same of output data raw: two's complement
129128
* with 1LSb = 1.5mG. These values act on the magnetic output data
130129
* value in order to delete the environmental offset.[set]
131130
*
@@ -153,7 +152,7 @@ int32_t lis2mdl_mag_user_offset_set(const stmdev_ctx_t *ctx, int16_t *val)
153152
/**
154153
* @brief These registers comprise a 3 group of 16-bit number and represent
155154
* hard-iron offset in order to compensate environmental effects.
156-
* Data format is the same of output data raw: twos complement
155+
* Data format is the same of output data raw: two's complement
157156
* with 1LSb = 1.5mG. These values act on the magnetic output data
158157
* value in order to delete the environmental offset.[get]
159158
*
@@ -1154,7 +1153,7 @@ int32_t lis2mdl_int_gen_source_get(const stmdev_ctx_t *ctx,
11541153

11551154
/**
11561155
* @brief User-defined threshold value for xl interrupt event on generator.
1157-
* Data format is the same of output data raw: twos complement with
1156+
* Data format is the same of output data raw: two's complement with
11581157
* 1LSb = 1.5mG.[set]
11591158
*
11601159
* @param ctx read / write interface definitions.(ptr)
@@ -1176,7 +1175,7 @@ int32_t lis2mdl_int_gen_threshold_set(const stmdev_ctx_t *ctx, uint16_t val)
11761175

11771176
/**
11781177
* @brief User-defined threshold value for xl interrupt event on generator.
1179-
* Data format is the same of output data raw: twos complement with
1178+
* Data format is the same of output data raw: two's complement with
11801179
* 1LSb = 1.5mG.[get]
11811180
*
11821181
* @param ctx read / write interface definitions.(ptr)
@@ -1329,5 +1328,3 @@ int32_t lis2mdl_i2c_interface_get(const stmdev_ctx_t *ctx,
13291328
* @}
13301329
*
13311330
*/
1332-
1333-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

lis2mdl_reg.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
******************************************************************************
88
* @attention
99
*
10-
* <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
11-
* All rights reserved.</center></h2>
10+
* Copyright (c) 2021 STMicroelectronics.
11+
* All rights reserved.
1212
*
13-
* This software component is licensed by ST under BSD 3-Clause license,
14-
* the "License"; You may not use this file except in compliance with the
15-
* License. You may obtain a copy of the License at:
16-
* opensource.org/licenses/BSD-3-Clause
13+
* This software is licensed under terms that can be found in the LICENSE file
14+
* in the root directory of this software component.
15+
* If no LICENSE file comes with this software, it is provided AS-IS.
1716
*
1817
******************************************************************************
1918
*/
@@ -537,5 +536,3 @@ int32_t lis2mdl_i2c_interface_get(const stmdev_ctx_t *ctx,
537536
#endif
538537

539538
#endif /* LIS2MDL_REGS_H */
540-
541-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)