drivers: sensor: tmp112: correct type

TMP112 registers are 16bit so there is no reason to use int64_t for
register values

Signed-off-by: Guillaume Lager <g.lager@innoseis.com>
This commit is contained in:
Guillaume Lager 2021-06-16 15:54:05 +02:00 committed by Carles Cufí
commit cd207ca0bc

View file

@ -81,7 +81,7 @@ static int tmp112_attr_set(const struct device *dev,
const struct sensor_value *val)
{
const struct tmp112_config *cfg = dev->config;
int64_t value;
uint16_t value;
uint16_t cr;
if (chan != SENSOR_CHAN_AMBIENT_TEMP) {