Skip to content

Commit f639e0b

Browse files
t-8chJiri Kosina
authored andcommitted
HID: i2c-hid: use uniform debugging APIs
Only two locations in i2c-hid are using the standard dev_dbg() APIs. The rest are all using the custom i2c_hid_dbg(), which in turn uses dev_dbg(). Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 34ba365 commit f639e0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/i2c-hid/i2c-hid-core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ static int i2c_hid_init_irq(struct i2c_client *client)
850850
unsigned long irqflags = 0;
851851
int ret;
852852

853-
dev_dbg(&client->dev, "Requesting IRQ: %d\n", client->irq);
853+
i2c_hid_dbg(ihid, "Requesting IRQ: %d\n", client->irq);
854854

855855
if (!irq_get_trigger_type(client->irq))
856856
irqflags = IRQF_TRIGGER_LOW;
@@ -994,7 +994,7 @@ int i2c_hid_core_probe(struct i2c_client *client, struct i2chid_ops *ops,
994994
/* Make sure there is something at this address */
995995
ret = i2c_smbus_read_byte(client);
996996
if (ret < 0) {
997-
dev_dbg(&client->dev, "nothing at this address: %d\n", ret);
997+
i2c_hid_dbg(ihid, "nothing at this address: %d\n", ret);
998998
ret = -ENXIO;
999999
goto err_powered;
10001000
}

0 commit comments

Comments
 (0)