| Submitter | Viresh KUMAR |
|---|---|
| Date | March 1, 2011, 6:04 a.m. |
| Message ID | <4D6C8C83.2010608@st.com> |
| Download | mbox | patch |
| Permalink | /patch/84898/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/include/linux/device.h b/include/linux/device.h index 1bf5cf0..6ce0f20 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -576,6 +576,11 @@ static inline void *dev_get_platdata(const struct device *dev) return dev->platform_data; } +static inline void dev_set_platdata(struct device *dev, void *platdata) +{ + dev->platform_data = platdata; +} + /* * Manual binding of a device to driver. See drivers/base/bus.c * for information on use.