net/ng_netdev: made pointer to driver const

This commit is contained in:
Hauke Petersen 2015-03-23 16:20:25 +01:00
parent 0a7582f863
commit 4968e54816

View File

@ -168,9 +168,9 @@ typedef struct {
* @see ng_netdev_t
*/
struct ng_netdev {
ng_netdev_driver_t *driver; /**< pointer to the devices interface */
ng_netdev_event_cb_t event_cb; /**< netdev event callback */
kernel_pid_t mac_pid; /**< the driver's thread's PID */
ng_netdev_driver_t const *driver; /**< pointer to the devices interface */
ng_netdev_event_cb_t event_cb; /**< netdev event callback */
kernel_pid_t mac_pid; /**< the driver's thread's PID */
};
#ifdef __cplusplus