raiden00pl
547cbf3ba6
drivers/sensors: fix style issues in function headers
...
fix style issues in function headers, add missing new lines
2024-11-15 01:04:10 +08:00
Alin Jerpelea
286d37026c
drivers: migrate to SPDX identifier
...
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2024-11-06 18:02:25 +08:00
wangjianyu3
bdddc76997
nuttx/uorb: Fix incompatible type error
...
Related: b17c074a18
Log:
Error: sensors/ms56xx_uorb.c:145:20: error: initialization of 'int (*)(struct sensor_lowerhalf_s *, struct file *, uint32_t *)' {aka 'int (*)(struct sensor_lowerhalf_s *, struct file *, unsigned int *)'} from incompatible pointer type 'int (*)(struct sensor_lowerhalf_s *, struct file *, long unsigned int *)' [-Werror=incompatible-pointer-types]
145 | .set_interval = ms56xx_set_interval,
| ^~~~~~~~~~~~~~~~~~~
sensors/ms56xx_uorb.c:145:20: note: (near initialization for 'g_sensor_ops.set_interval')
cc1: all warnings being treated as errors
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 19:54:38 +08:00
wangjianyu3
3ab62370cb
nuttx/uorb: Fix initialization error of variable of type struct sensor_ops_s
...
Related change:
.flush : 403469336f
.get_info : 703bb7e7b3
Error Log:
1153 Building NuttX...
1154Error: sensors/bme680_uorb.c:428:3: error: initialization of 'int (*)(struct sensor_lowerhalf_s *, struct file *, long unsigned int)' from incompatible pointer type 'int (*)(struct sensor_lowerhalf_s *, struct file *, int, long unsigned int)' [-Werror=incompatible-pointer-types]
1155 428 | bme680_control /* control */
1156 | ^~~~~~~~~~~~~~
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 19:54:38 +08:00
Petro Karashchenko
d499ac9d58
nuttx: fix multiple 'FAR', 'CODE' and style issues
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2024-08-25 19:22:15 +08:00
chao an
0902231deb
drivers/sensors: fix comments typo
...
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-05 22:25:28 +08:00
raiden00pl
0b00a02f81
sensors: add suffix _uorb to all sensors that use the new sensor framework
...
This'll make it easier to identify sensors supporting the new sensor approach
2023-09-21 20:30:08 +08:00