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 <david.leach@nxp.com>
This commit is contained in:
parent
78790a85aa
commit
d33f8c7f27
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue