diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 9b310071cb41..21f789350502 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -306,6 +306,18 @@ g_list_to_dev(struct list_head *g_list) return list_entry(g_list, struct device, g_list); } +static inline void * +dev_get_drvdata (struct device *dev) +{ + return dev->driver_data; +} + +static inline void +dev_set_drvdata (struct device *dev, void *data) +{ + dev->driver_data = data; +} + /* * High level routines for use by the bus drivers */ |
