+ if (status != MAX31335_STATUS1_DEFAULT)
+ dev_err_probe(&client->dev, -EINVAL,
+ "Unable to read from device.\n");
+
That is misleading. The device returned an unexpected status.
I don't know if this really reflects a problem, but it is not
"Unable to read from device".
Since the device lacks an ID register, I found this as a suitable
replacement for checking that the communication with the
device actually works before the probe function finishes
successfully.