drivers: sensors: ti_hdc20xx: use uint16_t variables to store the samples

The temperature and humidity samples are 16 bits long and can therefore
fit in a uint16_t variable. This save 4 bytes of RAM.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Aurelien Jarno 2021-08-07 22:58:40 +02:00 committed by Christopher Friedt
commit 7ebae7f569

View file

@ -38,8 +38,8 @@ struct ti_hdc20xx_config {
};
struct ti_hdc20xx_data {
int32_t t_sample;
int32_t rh_sample;
uint16_t t_sample;
uint16_t rh_sample;
};
static int ti_hdc20xx_sample_fetch(const struct device *dev,