diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-08-15 11:34:10 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-08-15 11:34:10 +0200 |
| commit | e99db3b1747b183b27d21e114853d45ffa650bf3 (patch) | |
| tree | 1c82eed7325972f49e451628c826a79b3968cd82 | |
| parent | 413576211c7be4b895a388dacd1770bb2a78997b (diff) | |
Minor changes
| -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); } |
