aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-08-25 09:33:50 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2011-08-25 09:33:50 -0400
commit5c095a0e0d600d5a5a4207eaadabd18db46395ce (patch)
tree18163d773234898e71c22d83b265a1eccfba11d9 /include/linux/device.h
parent111058c3ff29a6a25216b31789046c2a330baa7d (diff)
PM: Introduce struct pm_subsys_data
Introduce struct pm_subsys_data that may be subclassed by subsystems to store subsystem-specific information related to the device. Move the clock management fields accessed through the power.subsys_data pointer in struct device to the new strucutre. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index c20dfbfc49b4..5d200ed0071a 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -636,6 +636,11 @@ static inline void set_dev_node(struct device *dev, int node)
636} 636}
637#endif 637#endif
638 638
639static inline struct pm_subsys_data *dev_to_psd(struct device *dev)
640{
641 return dev ? dev->power.subsys_data : NULL;
642}
643
639static inline unsigned int dev_get_uevent_suppress(const struct device *dev) 644static inline unsigned int dev_get_uevent_suppress(const struct device *dev)
640{ 645{
641 return dev->kobj.uevent_suppress; 646 return dev->kobj.uevent_suppress;