Commit b584acb0 authored by Bogdan Davidoaia's avatar Bogdan Davidoaia Committed by Anas Nashif
Browse files

sensor: remove unused Q16_16 value type



Remove SENSOR_VALUE_TYPE_Q16_16 as it is not used by any driver. Future
drivers can use any of the remaining value types.

Change-Id: I984143cc65d6a6fd0477f310ac17c62498cc05b8
Signed-off-by: default avatarBogdan Davidoaia <bogdan.m.davidoaia@intel.com>
parent c3e08c8f
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -47,11 +47,6 @@ enum sensor_value_type {
	 * 10^(-6).
	 */
	SENSOR_VALUE_TYPE_INT_PLUS_MICRO,
	/**
	 * @brief val1 contains a Q16.16 representation, val2 is
	 * unused.
	 */
	SENSOR_VALUE_TYPE_Q16_16,
	/** @brief dval contains a floating point value. */
	SENSOR_VALUE_TYPE_DOUBLE,
};
+0 −3
Original line number Diff line number Diff line
@@ -25,9 +25,6 @@ static double convert_to_double(struct sensor_value *v)
		return v->val1;
	case SENSOR_VALUE_TYPE_INT_PLUS_MICRO:
		return v->val1 + ((double)v->val2 / 1000000);
	case SENSOR_VALUE_TYPE_Q16_16:
		__ASSERT_NO_MSG(1);
		break;
	case SENSOR_VALUE_TYPE_DOUBLE:
		return v->dval;
	}