Home
last modified time | relevance | path

Searched refs:sensor_ops (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/iio/common/scmi_sensors/
Dscmi_iio.c27 const struct scmi_sensor_proto_ops *sensor_ops; member
99 err = sensor->sensor_ops->config_set(sensor->ph, in scmi_iio_buffer_preenable()
117 err = sensor->sensor_ops->config_set(sensor->ph, in scmi_iio_buffer_postdisable()
141 int err = sensor->sensor_ops->config_get(sensor->ph, in scmi_iio_set_odr_val()
189 err = sensor->sensor_ops->config_set(sensor->ph, in scmi_iio_set_odr_val()
257 int err = sensor->sensor_ops->config_get(sensor->ph, in scmi_iio_get_odr_val()
296 err = sensor->sensor_ops->config_set( in scmi_iio_read_channel_data()
305 err = sensor->sensor_ops->reading_get_timestamped( in scmi_iio_read_channel_data()
317 err = sensor->sensor_ops->config_set( in scmi_iio_read_channel_data()
588 sensor->sensor_ops = ops; in scmi_alloc_iiodev()
[all …]
/linux-6.12.1/drivers/hwmon/
Dscmi-hwmon.c16 static const struct scmi_sensor_proto_ops *sensor_ops; variable
79 ret = sensor_ops->reading_get(ph, sensor->id, &value); in scmi_hwmon_read_scaled_value()
247 sensor_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_SENSOR, &ph); in scmi_hwmon_probe()
248 if (IS_ERR(sensor_ops)) in scmi_hwmon_probe()
249 return PTR_ERR(sensor_ops); in scmi_hwmon_probe()
251 nr_sensors = sensor_ops->count_get(ph); in scmi_hwmon_probe()
262 sensor = sensor_ops->info_get(ph, i); in scmi_hwmon_probe()
312 sensor = sensor_ops->info_get(ph, i); in scmi_hwmon_probe()