Convert all instances of using device printk helpers with struct device embedded in struct i2c_adapter to the new i2c-specific macros that hide that dereference.
Signed-off-by: Bartosz Golaszewski <[email protected]> --- drivers/i2c/busses/i2c-piix4.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c index ac3bb550303fe5893822af50c385004c9292e695..bf6ce6b4bed3f4ae8aa392c68189a67636c01bf9 100644 --- a/drivers/i2c/busses/i2c-piix4.c +++ b/drivers/i2c/busses/i2c-piix4.c @@ -650,7 +650,7 @@ static s32 piix4_access(struct i2c_adapter * adap, u16 addr, size = PIIX4_BLOCK_DATA; break; default: - dev_warn(&adap->dev, "Unsupported transaction %d\n", size); + i2c_warn(adap, "Unsupported transaction %d\n", size); return -EOPNOTSUPP; } @@ -825,12 +825,12 @@ static s32 piix4_access_sb800(struct i2c_adapter *adap, u16 addr, ret = piix4_imc_sleep(); switch (ret) { case -EBUSY: - dev_warn(&adap->dev, + i2c_warn(adap, "IMC base address index region 0x%x already in use.\n", KERNCZ_IMC_IDX); break; case -ETIMEDOUT: - dev_warn(&adap->dev, + i2c_warn(adap, "Failed to communicate with the IMC.\n"); break; default: @@ -839,7 +839,7 @@ static s32 piix4_access_sb800(struct i2c_adapter *adap, u16 addr, /* If IMC communication fails do not retry */ if (ret) { - dev_warn(&adap->dev, + i2c_warn(adap, "Continuing without IMC notification.\n"); adapdata->notify_imc = false; } -- 2.47.3
