diff options
author | Nicola Mazzucato <nicola.mazzucato@arm.com> | 2018-12-06 10:47:34 +0000 |
---|---|---|
committer | ronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com> | 2019-01-21 07:15:25 +0000 |
commit | aef1d571b81f64f17d2825e73e01ec66523dbc00 (patch) | |
tree | 97c869863c16bd46c7fa3a93aa4ed4108cef0041 | |
parent | 1c9e9fa22d376eff7755129a7596d8c2629b9fdf (diff) |
sensor: Add get_info driver API
Change-Id: I006f5f803eeaddf405e93bdea6de9656185c9c73
Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
-rw-r--r-- | module/sensor/include/mod_sensor.h | 13 |
1 files changed, 12 insertions, 1 deletions
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. |