drivers: vfs8xxx: silence enum-conversion warning
authorMichael Benedict <michaelbt@live.com>
Mon, 3 Jun 2019 08:32:11 +0000 (18:32 +1000)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 15:08:52 +0000 (01:08 +1000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
drivers/fingerprint/vfs8xxx.c

index 61750fea529681c7d63b152b9c66a3db12b9a315..b774dae60d66ce2f74e14122de529510f625c2f6 100644 (file)
@@ -1367,7 +1367,7 @@ static int vfsspi_parse_dt(struct device *dev, struct vfsspi_device_data *data)
 
        if (of_property_read_string_index(np, "vfsspi-chipid", 0,
                        (const char **)&data->chipid))
-               data->chipid = '\0';
+               data->chipid = NULL;
        pr_info("%s: chipid: %s\n", __func__, data->chipid);
 
        if (of_property_read_u32(np, "vfsspi-wog", &data->detect_mode))