Lines Matching refs:mlx90635
933 struct mlx90635_data *mlx90635; in mlx90635_probe() local
940 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*mlx90635)); in mlx90635_probe()
954 mlx90635 = iio_priv(indio_dev); in mlx90635_probe()
956 mlx90635->client = client; in mlx90635_probe()
957 mlx90635->regmap = regmap; in mlx90635_probe()
958 mlx90635->regmap_ee = regmap_ee; in mlx90635_probe()
959 mlx90635->powerstatus = MLX90635_PWR_STATUS_SLEEP_STEP; in mlx90635_probe()
961 mutex_init(&mlx90635->lock); in mlx90635_probe()
968 mlx90635->regulator = devm_regulator_get(&client->dev, "vdd"); in mlx90635_probe()
969 if (IS_ERR(mlx90635->regulator)) in mlx90635_probe()
970 return dev_err_probe(&client->dev, PTR_ERR(mlx90635->regulator), in mlx90635_probe()
973 ret = mlx90635_enable_regulator(mlx90635); in mlx90635_probe()
978 mlx90635); in mlx90635_probe()
983 ret = mlx90635_wakeup(mlx90635); in mlx90635_probe()
987 ret = devm_add_action_or_reset(&client->dev, mlx90635_sleep, mlx90635); in mlx90635_probe()
992 ret = regmap_read(mlx90635->regmap_ee, MLX90635_EE_VERSION, &dsp_version); in mlx90635_probe()
1013 mlx90635->emissivity = 1000; in mlx90635_probe()
1014 mlx90635->interaction_ts = jiffies; /* Set initial value */ in mlx90635_probe()