sensor: remove SENSOR_VALUE_TYPE_INT
Remove SENSOR_VALUE_TYPE_INT as it is the same as SENSOR_VALUE_TYPE_INT_PLUS_MICRO with val2 set to 0. Change-Id: If5a9c579b7267701c27f40fd887acae47d64edc5 Signed-off-by: Bogdan Davidoaia <bogdan.m.davidoaia@intel.com>
This commit is contained in:
parent
b584acb0a4
commit
4946e3e6e6
19 changed files with 34 additions and 65 deletions
|
@ -110,7 +110,7 @@ static int tmp112_attr_set(struct device *dev,
|
|||
switch (attr) {
|
||||
case SENSOR_ATTR_FULL_SCALE:
|
||||
|
||||
if (val->type != SENSOR_VALUE_TYPE_INT) {
|
||||
if (val->type != SENSOR_VALUE_TYPE_INT_PLUS_MICRO) {
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue