From 41f22bdba0e4c75e8c30c6c7152440e3affe6715 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 3 Dec 2020 08:32:43 +0900 Subject: [PATCH] drivers/sensors/ina219.c: Appease nxstyle --- drivers/sensors/ina219.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/sensors/ina219.c b/drivers/sensors/ina219.c index 09223444f6..ee9a16d4cb 100644 --- a/drivers/sensors/ina219.c +++ b/drivers/sensors/ina219.c @@ -94,7 +94,7 @@ struct ina219_dev_s FAR struct i2c_master_s *i2c; /* I2C interface */ uint8_t addr; /* I2C address */ uint16_t config; /* INA 219 config shadow */ - int32_t shunt_resistor_value; /* micro-ohms, max 2.15 kohms */ + int32_t shunt_resistor_value; /* micro-ohms, max 2.15 kohms */ }; /**************************************************************************** @@ -150,14 +150,16 @@ static int ina219_access(FAR struct ina219_dev_s *priv, struct i2c_msg_s msg[I2C_NOSTARTSTOP_MSGS]; int ret; - msg[I2C_NOSTARTSTOP_ADDRESS_MSG_INDEX].frequency = CONFIG_INA219_I2C_FREQUENCY; + msg[I2C_NOSTARTSTOP_ADDRESS_MSG_INDEX].frequency = + CONFIG_INA219_I2C_FREQUENCY; msg[I2C_NOSTARTSTOP_ADDRESS_MSG_INDEX].addr = priv->addr; msg[I2C_NOSTARTSTOP_ADDRESS_MSG_INDEX].flags = 0; msg[I2C_NOSTARTSTOP_ADDRESS_MSG_INDEX].buffer = &start_register_address; msg[I2C_NOSTARTSTOP_ADDRESS_MSG_INDEX].length = 1; - msg[I2C_NOSTARTSTOP_DATA_MSG_INDEX].addr = msg[I2C_NOSTARTSTOP_ADDRESS_MSG_INDEX].addr; + msg[I2C_NOSTARTSTOP_DATA_MSG_INDEX].addr = + msg[I2C_NOSTARTSTOP_ADDRESS_MSG_INDEX].addr; msg[I2C_NOSTARTSTOP_DATA_MSG_INDEX].flags = reading ? I2C_M_READ : 0; msg[I2C_NOSTARTSTOP_DATA_MSG_INDEX].buffer = register_value; msg[I2C_NOSTARTSTOP_DATA_MSG_INDEX].length = data_length;