Pratik Patel | d944cc7 | 2013-02-08 11:52:12 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
Pratik Patel | 5f6d1af | 2012-06-13 15:48:13 -0700 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __LINUX_OF_CORESIGHT_H |
| 14 | #define __LINUX_OF_CORESIGHT_H |
| 15 | |
Pratik Patel | f5e8497 | 2013-05-14 12:40:22 -0700 | [diff] [blame] | 16 | #ifdef CONFIG_OF_CORESIGHT |
Pratik Patel | 5f6d1af | 2012-06-13 15:48:13 -0700 | [diff] [blame] | 17 | extern struct coresight_platform_data *of_get_coresight_platform_data( |
| 18 | struct device *dev, struct device_node *node); |
Pratik Patel | d944cc7 | 2013-02-08 11:52:12 -0800 | [diff] [blame] | 19 | extern struct coresight_cti_data *of_get_coresight_cti_data( |
| 20 | struct device *dev, struct device_node *node); |
Pratik Patel | 5f6d1af | 2012-06-13 15:48:13 -0700 | [diff] [blame] | 21 | #else |
| 22 | static inline struct coresight_platform_data *of_get_coresight_platform_data( |
| 23 | struct device *dev, struct device_node *node) |
| 24 | { |
| 25 | return NULL; |
| 26 | } |
Pratik Patel | d944cc7 | 2013-02-08 11:52:12 -0800 | [diff] [blame] | 27 | static inline struct coresight_cti_data *of_get_coresight_cti_data( |
| 28 | struct device *dev, struct device_node *node) |
| 29 | { |
| 30 | return NULL; |
| 31 | } |
Pratik Patel | 5f6d1af | 2012-06-13 15:48:13 -0700 | [diff] [blame] | 32 | #endif |
| 33 | |
| 34 | #endif |