mirror of
https://gitlab.com/manzerbredes/ina260-sysfs-driver.git
synced 2025-04-19 04:09:45 +00:00
Minor changes
This commit is contained in:
parent
413576211c
commit
e99db3b174
1 changed files with 3 additions and 3 deletions
6
ina260.c
6
ina260.c
|
@ -202,9 +202,9 @@ static int ina260_probe_new(struct i2c_client *client)
|
||||||
struct device *hwmon_dev;
|
struct device *hwmon_dev;
|
||||||
|
|
||||||
// Initialize client data:
|
// 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);
|
client->adapter->nr, client->addr);
|
||||||
p = kzalloc(sizeof(client_data), GFP_KERNEL);
|
p = kzalloc(sizeof(*p), GFP_KERNEL);
|
||||||
p->client = client;
|
p->client = client;
|
||||||
p->regmap = devm_regmap_init_i2c(client, &ina260_regmap_config);
|
p->regmap = devm_regmap_init_i2c(client, &ina260_regmap_config);
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ static void ina260_remove(struct i2c_client *client)
|
||||||
|
|
||||||
kfree(p);
|
kfree(p);
|
||||||
hwmon_device_unregister(&client->dev);
|
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);
|
client->adapter->nr, client->addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue