From aef1d571b81f64f17d2825e73e01ec66523dbc00 Mon Sep 17 00:00:00 2001 From: Nicola Mazzucato Date: Thu, 6 Dec 2018 10:47:34 +0000 Subject: sensor: Add get_info driver API Change-Id: I006f5f803eeaddf405e93bdea6de9656185c9c73 Signed-off-by: Nicola Mazzucato --- module/sensor/include/mod_sensor.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/module/sensor/include/mod_sensor.h b/module/sensor/include/mod_sensor.h index 5a3cea33..71a7a588 100644 --- a/module/sensor/include/mod_sensor.h +++ b/module/sensor/include/mod_sensor.h @@ -184,7 +184,18 @@ struct mod_sensor_driver_api { * \return One of the standard framework error codes. */ int (*get_value)(fwk_id_t id, uint64_t *value); -}; + + /*! + * \brief Read sensor information. + * + * \param id Specific sensor device id. + * \param info Pointer to storage for the sensor information. + * + * \retval FWK_SUCCESS The information was read successfully. + * \return One of the standard framework error codes. + */ + int (*get_info)(fwk_id_t id, struct mod_sensor_info *info); + }; /*! * \brief Sensor API. -- cgit v1.2.3