blob: 0943ddaf1c621bcbeafad1f964e21f03522efbd3 [file] [log] [blame]
Pratik Pateld944cc72013-02-08 11:52:12 -08001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Pratik Patel5f6d1af2012-06-13 15:48:13 -07002 *
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
16#ifdef CONFIG_OF
17extern struct coresight_platform_data *of_get_coresight_platform_data(
18 struct device *dev, struct device_node *node);
Pratik Pateld944cc72013-02-08 11:52:12 -080019extern struct coresight_cti_data *of_get_coresight_cti_data(
20 struct device *dev, struct device_node *node);
Pratik Patel5f6d1af2012-06-13 15:48:13 -070021#else
22static inline struct coresight_platform_data *of_get_coresight_platform_data(
23 struct device *dev, struct device_node *node)
24{
25 return NULL;
26}
Pratik Pateld944cc72013-02-08 11:52:12 -080027static inline struct coresight_cti_data *of_get_coresight_cti_data(
28 struct device *dev, struct device_node *node)
29{
30 return NULL;
31}
Pratik Patel5f6d1af2012-06-13 15:48:13 -070032#endif
33
34#endif