blob: eb20e8084fcd56a8f2568d84f1e0f129f5452cad [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
Pratik Patelf5e84972013-05-14 12:40:22 -070016#ifdef CONFIG_OF_CORESIGHT
Pratik Patel5f6d1af2012-06-13 15:48:13 -070017extern 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