blob: 58fb1ff1f20b15f9b75973f5caeefea4d47cab85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Samsung Exynos5 SoC series FIMC-IS driver
*
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef FIMC_IS_DT_H
#define FIMC_IS_DT_H
#define DT_READ_U32(node, key, value) do {\
pprop = key; \
temp = 0; \
if (of_property_read_u32((node), key, &temp)) \
pr_warn("%s: no property in the node.\n", pprop);\
(value) = temp; \
} while (0)
#define DT_READ_STR(node, key, value) do {\
pprop = key; \
if (of_property_read_string((node), key, &name)) \
pr_warn("%s: no property in the node.\n", pprop);\
(value) = name; \
} while (0)
struct exynos_platform_fimc_is *fimc_is_parse_dt(struct device *dev);
int fimc_is_sensor_parse_dt(struct platform_device *pdev);
int fimc_is_companion_parse_dt(struct platform_device *pdev);
#endif
|