summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-08-15 11:34:10 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-08-15 11:34:10 +0200
commite99db3b1747b183b27d21e114853d45ffa650bf3 (patch)
tree1c82eed7325972f49e451628c826a79b3968cd82
parent413576211c7be4b895a388dacd1770bb2a78997b (diff)
Minor changes
-rwxr-xr-xina260.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ina260.c b/ina260.c
index 8c7d0e7..19c6c31 100755
--- a/ina260.c
+++ b/ina260.c
@@ -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);
}