aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/ti_am335x_tscadc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mfd/ti_am335x_tscadc.h b/include/linux/mfd/ti_am335x_tscadc.h
index c79ad5d2f271..8114e4e8b91b 100644
--- a/include/linux/mfd/ti_am335x_tscadc.h
+++ b/include/linux/mfd/ti_am335x_tscadc.h
@@ -149,4 +149,11 @@ struct ti_tscadc_dev {
149 struct adc_device *adc; 149 struct adc_device *adc;
150}; 150};
151 151
152static inline struct ti_tscadc_dev *ti_tscadc_dev_get(struct platform_device *p)
153{
154 struct ti_tscadc_dev **tscadc_dev = p->dev.platform_data;
155
156 return *tscadc_dev;
157}
158
152#endif 159#endif