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
407619c860
commit
3ed60f4537
2 changed files with 2 additions and 4 deletions
3
ina260.c
3
ina260.c
|
@ -196,12 +196,11 @@ static int ina260_probe_new(struct i2c_client *client){
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ina260_remove(struct i2c_client *client){
|
||||
static void ina260_remove(struct i2c_client *client){
|
||||
struct client_data *p=i2c_get_clientdata(client);
|
||||
kfree(p);
|
||||
hwmon_device_unregister(&client->dev);
|
||||
printk("Removing ina260 [bus=%d address=0x%02x]\n",client->adapter->nr,client->addr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct i2c_device_id ina260_ids[] = {
|
||||
|
|
|
@ -514,12 +514,11 @@ static int ina260_probe_new(struct i2c_client *client){
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ina260_remove(struct i2c_client *client){
|
||||
static void ina260_remove(struct i2c_client *client){
|
||||
struct client_data *p=i2c_get_clientdata(client);
|
||||
kobject_put(&p->kobj);
|
||||
kfree(p);
|
||||
printk("ina260 removed bus=%d address=0x%02x\n",client->adapter->nr,client->addr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct i2c_driver ina260_driver = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue