Skip to content

Commit a28a338

Browse files
erwangohenrikbrixandersen
authored andcommitted
i2c: stm32: Fix return type declaration of 2 private functions
Return type should be int, no need for int32_t. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
1 parent 7fb92c9 commit a28a338

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/i2c/i2c_ll_stm32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ struct i2c_stm32_data {
9393
#endif
9494
};
9595

96-
int32_t stm32_i2c_transaction(const struct device *dev,
96+
int stm32_i2c_transaction(const struct device *dev,
9797
struct i2c_msg msg, uint8_t *next_msg_flags,
9898
uint16_t periph);
99-
int32_t stm32_i2c_configure_timing(const struct device *dev, uint32_t clk);
99+
int stm32_i2c_configure_timing(const struct device *dev, uint32_t clk);
100100
int i2c_stm32_runtime_configure(const struct device *dev, uint32_t config);
101101
int i2c_stm32_get_config(const struct device *dev, uint32_t *config);
102102

drivers/i2c/i2c_ll_stm32_v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ static int32_t stm32_i2c_msg_read(const struct device *dev, struct i2c_msg *msg,
993993
}
994994
#endif /* CONFIG_I2C_STM32_INTERRUPT */
995995

996-
int32_t stm32_i2c_configure_timing(const struct device *dev, uint32_t clock)
996+
int stm32_i2c_configure_timing(const struct device *dev, uint32_t clock)
997997
{
998998
const struct i2c_stm32_config *cfg = dev->config;
999999
struct i2c_stm32_data *data = dev->data;

0 commit comments

Comments
 (0)