summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-08-14 16:37:31 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-08-14 16:37:31 +0200
commit3ed60f45370a8fe69c64bcc9a12a1f3e68107624 (patch)
tree299ca929e34e7964f13514b0ac948569b4dd7923
parent407619c8600ed015f609e947cb5a335377d161b1 (diff)
Minor changes
-rwxr-xr-xina260.c3
-rwxr-xr-xina260_full.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/ina260.c b/ina260.c
index 233656e..090e168 100755
--- a/ina260.c
+++ b/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[] = {
diff --git a/ina260_full.c b/ina260_full.c
index f2fa004..2317281 100755
--- a/ina260_full.c
+++ b/ina260_full.c
@@ -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 = {