Lines Matching defs:sensor
63 static int st_syscfg_power_ctrl(struct st_thermal_sensor *sensor,
66 return regmap_field_write(sensor->pwr, power_state);
69 static int st_syscfg_alloc_regfields(struct st_thermal_sensor *sensor)
71 struct device *dev = sensor->dev;
73 sensor->pwr = devm_regmap_field_alloc(dev, sensor->regmap,
74 sensor->cdata->reg_fields[TEMP_PWR]);
76 if (IS_ERR(sensor->pwr)) {
78 return PTR_ERR(sensor->pwr);
84 static int st_syscfg_regmap_init(struct st_thermal_sensor *sensor)
86 sensor->regmap =
87 syscon_regmap_lookup_by_compatible(sensor->cdata->sys_compat);
88 if (IS_ERR(sensor->regmap)) {
89 dev_err(sensor->dev, "failed to find syscfg regmap\n");
90 return PTR_ERR(sensor->regmap);
102 /* Compatible device data for stih415 sas thermal sensor */
112 /* Compatible device data for stih415 mpe thermal sensor */
122 /* Compatible device data for stih416 sas thermal sensor */
132 /* Compatible device data for stid127 thermal sensor */