# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.575 -> 1.576 # include/linux/device.h 1.31 -> 1.32 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/09/16 greg@kroah.com 1.576 # Driver Model: add dev_get_drvdata() and dev_set_drvdata() functions # -------------------------------------------- # diff -Nru a/include/linux/device.h b/include/linux/device.h --- a/include/linux/device.h Mon Sep 16 15:00:50 2002 +++ b/include/linux/device.h Mon Sep 16 15:00:50 2002 @@ -306,6 +306,18 @@ 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 */