Skip to content

Commit e9a6799

Browse files
billwatersiiikartben
authored andcommitted
drivers: i2c: minor update to Infineon driver
- update to the new name of the function used from the serial driver Signed-off-by: Bill Waters <[email protected]>
1 parent 35a4613 commit e9a6799

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/i2c_ifx_cat1_pdl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static cy_stc_scb_i2c_config_t _i2c_default_config = {
101101
typedef void (*ifx_cat1_i2c_event_callback_t)(void *callback_arg, uint32_t event);
102102

103103
en_clk_dst_t _ifx_cat1_scb_get_clock_index(uint32_t block_num);
104-
int32_t _get_hw_block_num(CySCB_Type *reg_addr);
104+
int32_t ifx_cat1_uart_get_hw_block_num(CySCB_Type *reg_addr);
105105

106106
cy_rslt_t _i2c_abort_async(const struct device *dev)
107107
{
@@ -262,7 +262,7 @@ uint32_t _i2c_set_peri_divider(const struct device *dev, uint32_t freq, bool is_
262262
struct ifx_cat1_i2c_data *data = dev->data;
263263
const struct ifx_cat1_i2c_config *const config = dev->config;
264264
CySCB_Type *base = config->base;
265-
uint32_t block_num = _get_hw_block_num(config->base);
265+
uint32_t block_num = ifx_cat1_uart_get_hw_block_num(config->base);
266266
uint32_t data_rate = 0;
267267
uint32_t peri_freq = 0;
268268
cy_rslt_t status;

0 commit comments

Comments
 (0)