2pecshy / eeprom-ST25DV-linux-driver

eeprom-ST25DV-linux-driver
GNU General Public License v2.0
11 stars 12 forks source link

Compile error introduced when "add st25dv support on more than one I2C bus" commit #8

Open thelinuxdude opened 4 years ago

thelinuxdude commented 4 years ago

I had to patch the code with the following to get it to compile.

diff --git a/src/st25dv.c b/src/st25dv.c
index fd96787..67a14d7 100644
--- a/src/st25dv.c
+++ b/src/st25dv.c
@@ -379,7 +379,7 @@ static int st25dv_probe(struct i2c_client *client,
        sys_data->client = client_sys_area;
        mailbox_data->client = client;
        dyn_reg_data->client = client;
-       memset(data->data, 0xff, mem_config[id->driver_data];);
+       memset(data->data, 0xff, mem_config[id->driver_data]);
        memset(sys_data->data, 0xff, SYS_MEM_SIZE);
        memset(dyn_reg_data->data, 0xff, DYN_REG_SIZE);
        memset(mailbox_data->data, 0xff, MAILBOX_MEM_SIZE);
s-hemer commented 9 months ago

Fixed with afcfa1b