summaryrefslogtreecommitdiff
path: root/ina260.c
diff options
context:
space:
mode:
Diffstat (limited to 'ina260.c')
-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);
}