From d33f8c7f27e41b5a44c7032b95462765eaf674d8 Mon Sep 17 00:00:00 2001 From: David Leach Date: Tue, 9 Jan 2024 16:03:03 -0600 Subject: [PATCH] drivers: i2c: i2c_mcux_lpi2c: fix unused variable warning With commit 1d7476af, 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 --- drivers/i2c/i2c_mcux_lpi2c.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/i2c_mcux_lpi2c.c b/drivers/i2c/i2c_mcux_lpi2c.c index 099633beeeb..16660359312 100644 --- a/drivers/i2c/i2c_mcux_lpi2c.c +++ b/drivers/i2c/i2c_mcux_lpi2c.c @@ -310,7 +310,6 @@ restore: #ifdef CONFIG_I2C_TARGET static void mcux_lpi2c_slave_irq_handler(const struct device *dev) { - const struct mcux_lpi2c_config *config = dev->config; struct mcux_lpi2c_data *data = dev->data; LPI2C_Type *base = (LPI2C_Type *)DEVICE_MMIO_NAMED_GET(dev, reg_base); 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, static int mcux_lpi2c_target_unregister(const struct device *dev, struct i2c_target_config *target_config) { - const struct mcux_lpi2c_config *config = dev->config; struct mcux_lpi2c_data *data = dev->data; LPI2C_Type *base = (LPI2C_Type *)DEVICE_MMIO_NAMED_GET(dev, reg_base);