1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

saul_reg: define saul_reg_t dev field as a pointer to const

This commit is contained in:
Gaëtan Harter 2017-09-08 19:18:50 +02:00
parent f4a44ce303
commit d5ec78f917

View File

@ -38,7 +38,7 @@ extern "C" {
*/
typedef struct saul_reg {
struct saul_reg *next; /**< pointer to the next device */
void *dev; /**< pointer to the device descriptor */
const void *dev; /**< pointer to the device descriptor */
const char *name; /**< string identifier for the device */
saul_driver_t const *driver; /**< the devices read callback */
} saul_reg_t;