diff options
| -rwxr-xr-x | ina260.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -202,9 +202,9 @@ static int ina260_probe_new(struct i2c_client *client) struct device *hwmon_dev; // Initialize client data: - dev_dbg("Adding ina260 [bus=%d address=0x%02x]\n", + dev_dbg(&client->dev, "Adding ina260 [bus=%d address=0x%02x]\n", client->adapter->nr, client->addr); - p = kzalloc(sizeof(client_data), GFP_KERNEL); + p = kzalloc(sizeof(*p), GFP_KERNEL); p->client = client; p->regmap = devm_regmap_init_i2c(client, &ina260_regmap_config); @@ -221,7 +221,7 @@ static void ina260_remove(struct i2c_client *client) kfree(p); hwmon_device_unregister(&client->dev); - dev_dbg("Removing ina260 [bus=%d address=0x%02x]\n", + dev_dbg(&client->dev, "Removing ina260 [bus=%d address=0x%02x]\n", client->adapter->nr, client->addr); } |
