input: vl53l0x: return ENODEV if vl53l0x not enable

if vl53l0x sensor not enable, it will output a wrong data.
so we return "ENODEV" when sensor not enable.

Change-Id: I4b6a074d9999e5fd947738e9b611be45708b9a1c
Signed-off-by: Chaojun Wang <chaojun@codeaurora.org>
diff --git a/drivers/input/misc/vl53l0x/stmvl53l0x_module.c b/drivers/input/misc/vl53l0x/stmvl53l0x_module.c
index 26cee2e..34508b2 100644
--- a/drivers/input/misc/vl53l0x/stmvl53l0x_module.c
+++ b/drivers/input/misc/vl53l0x/stmvl53l0x_module.c
@@ -963,6 +963,8 @@
 	struct vl_data *data = dev_get_drvdata(dev);
 	struct VL_RangingMeasurementData_t Measure;
 
+	if (data->enable_ps_sensor == 0)
+		return -ENODEV;
 	papi_func_tbl->PerformSingleRangingMeasurement(data, &Measure);
 	return snprintf(buf, 7, "%d\n", Measure.RangeMilliMeter);
 }