diff --git a/drivers/input/misc/qti-haptics.c b/drivers/input/misc/qti-haptics.c index fc61ae69a053..dedb37bd0e1c 100644 --- a/drivers/input/misc/qti-haptics.c +++ b/drivers/input/misc/qti-haptics.c @@ -292,8 +292,8 @@ static int qti_haptics_write(struct qti_hap_chip *chip, rc = regmap_write(chip->regmap, chip->reg_base + addr, *val); - if (rc < 0) - dev_err(chip->dev, "write addr 0x%x failed, rc=%d\n", + if (rc < 0) + dev_err(chip->dev, "write addr 0x%x failed, rc=%d\n", addr, rc); }