summaryrefslogtreecommitdiff
path: root/include/dt-bindings/clock/exynos-audss-clk.h
blob: 0ae6f5a75d2a5abcffbfbef0ebbbc20e906f8ff2 (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
/*
 * This header provides constants for Samsung audio subsystem
 * clock controller.
 *
 * The constants defined in this header are being used in dts
 * and exynos audss driver.
 */

#ifndef _DT_BINDINGS_CLK_EXYNOS_AUDSS_H
#define _DT_BINDINGS_CLK_EXYNOS_AUDSS_H

#define EXYNOS_MOUT_AUDSS	0
#define EXYNOS_MOUT_I2S	1
#define EXYNOS_DOUT_SRP	2
#define EXYNOS_DOUT_AUD_BUS	3
#define EXYNOS_DOUT_I2S	4
#define EXYNOS_SRP_CLK		5
#define EXYNOS_I2S_BUS		6
#define EXYNOS_SCLK_I2S	7
#define EXYNOS_PCM_BUS		8
#define EXYNOS_SCLK_PCM	9
#define EXYNOS_ADMA		10

#define EXYNOS_AUDSS_MAX_CLKS	11

#endif
ect'>regulator: gpio: properly check return value of of_get_named_gpio
The function of_get_named_gpio() could return -ENOENT, -EPROBE_DEFER -EINVAL and so on. Currently, for the optional property "enable-gpio", we only check -EPROBE_DEFER, this is not enough since there may be misconfigured "enable-gpio" in the DTB, of_get_named_gpio() will return -EINVAL in this case, we should return immediately here. And for the optional property "gpios", we didn't check the return value, the driver will continue to the point where gpio_request_array() is called, it doesn't make sense to continue if we got -EPROBE_DEFER or -EINVAL here. This patch tries to address these two issues by properly checking the return value of of_get_named_gpio. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/x25/x25_subr.c')