drivers: Add 'U' to unsigned variable assignments

Add 'U' to a value when assigning it to an unsigned variable.
MISRA-C rule 7.2

Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
Patrik Flykt 2018-11-29 11:12:22 -08:00 committed by Anas Nashif
commit 8ff96b5a57
172 changed files with 693 additions and 693 deletions

View file

@ -59,7 +59,7 @@ static int tmp112_reg_write(struct tmp112_data *drv_data,
static int tmp112_reg_update(struct tmp112_data *drv_data, u8_t reg,
u16_t mask, u16_t val)
{
u16_t old_val = 0;
u16_t old_val = 0U;
u16_t new_val;
if (tmp112_reg_read(drv_data, reg, &old_val) < 0) {