ccs_data_parse() return value is not propagated up to the probe function, making it difficult on static data parse Failure. Improve this by printing a warning when ccs_data_parse() fails. Signed-off-by: Mehdi Djait <mehdi.djait@xxxxxxxxxxxxxxx> --- drivers/media/i2c/ccs/ccs-data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ccs/ccs-data.c b/drivers/media/i2c/ccs/ccs-data.c index c40d859166dd..f64fbfa1c7b5 100644 --- a/drivers/media/i2c/ccs/ccs-data.c +++ b/drivers/media/i2c/ccs/ccs-data.c @@ -976,6 +976,7 @@ int ccs_data_parse(struct ccs_data_container *ccsdata, const void *data, out_cleanup: kvfree(bin.base); memset(ccsdata, 0, sizeof(*ccsdata)); + dev_warn(dev, "failed to parse CCS static data file: %d\n", rval); return rval; } -- 2.47.1