drivers/sensors: Remove the uncalibrated member of the sensor

lowerhalf layer.

The uncalibrated type is passed in with type. The driver defaults
to the calibrated type.

Signed-off-by: likun17 <likun17@xiaomi.com>
This commit is contained in:
likun17
2025-02-12 16:09:35 +08:00
committed by Xiang Xiao
parent 4f0e71dca1
commit c52d54d500
4 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -174,9 +174,9 @@ static const struct sensor_meta_s g_sensor_meta[] =
{sizeof(struct sensor_rotation), "rotation"},
{sizeof(struct sensor_humi), "humi"},
{sizeof(struct sensor_temp), "ambient_temp"},
{sizeof(struct sensor_mag), "mag_uncal"},
{sizeof(struct sensor_mag_uncal), "mag_uncal"},
{sizeof(struct sensor_pm1p0), "pm1p0"},
{sizeof(struct sensor_gyro), "gyro_uncal"},
{sizeof(struct sensor_gyro_uncal), "gyro_uncal"},
{sizeof(struct sensor_event), "motion_detect"},
{sizeof(struct sensor_event), "step_detector"},
{sizeof(struct sensor_step_counter), "step_counter"},
@@ -195,7 +195,7 @@ static const struct sensor_meta_s g_sensor_meta[] =
{sizeof(struct sensor_force), "force"},
{sizeof(struct sensor_hall), "hall"},
{sizeof(struct sensor_event), "offbody_detector"},
{sizeof(struct sensor_accel), "accel_uncal"},
{sizeof(struct sensor_accel_uncal), "accel_uncal"},
{sizeof(struct sensor_angle), "hinge_angle"},
{sizeof(struct sensor_ir), "ir"},
{sizeof(struct sensor_hcho), "hcho"},