Skip to content

Commit d33f8c7

Browse files
committed
drivers: i2c: i2c_mcux_lpi2c: fix unused variable warning
With commit 1d7476a, it fixed a build error with config structure no longer having a base address field but left the local variable defined. This resulted in a build warning of an unused variable 'config' in two places. Signed-off-by: David Leach <[email protected]>
1 parent 78790a8 commit d33f8c7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/i2c/i2c_mcux_lpi2c.c

-2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ static int mcux_lpi2c_recover_bus(const struct device *dev)
310310
#ifdef CONFIG_I2C_TARGET
311311
static void mcux_lpi2c_slave_irq_handler(const struct device *dev)
312312
{
313-
const struct mcux_lpi2c_config *config = dev->config;
314313
struct mcux_lpi2c_data *data = dev->data;
315314
LPI2C_Type *base = (LPI2C_Type *)DEVICE_MMIO_NAMED_GET(dev, reg_base);
316315
const struct i2c_target_callbacks *target_cb = data->target_cfg->callbacks;
@@ -454,7 +453,6 @@ static int mcux_lpi2c_target_register(const struct device *dev,
454453
static int mcux_lpi2c_target_unregister(const struct device *dev,
455454
struct i2c_target_config *target_config)
456455
{
457-
const struct mcux_lpi2c_config *config = dev->config;
458456
struct mcux_lpi2c_data *data = dev->data;
459457
LPI2C_Type *base = (LPI2C_Type *)DEVICE_MMIO_NAMED_GET(dev, reg_base);
460458

0 commit comments

Comments
 (0)