summaryrefslogtreecommitdiff
path: root/include/dt-bindings/power/rk3368-power.h
blob: 93633d57ed8485bb657979438bd355cc6cdb3edb (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
#ifndef __DT_BINDINGS_POWER_RK3368_POWER_H__
#define __DT_BINDINGS_POWER_RK3368_POWER_H__

/* VD_CORE */
#define RK3368_PD_A53_L0	0
#define RK3368_PD_A53_L1	1
#define RK3368_PD_A53_L2	2
#define RK3368_PD_A53_L3	3
#define RK3368_PD_SCU_L		4
#define RK3368_PD_A53_B0	5
#define RK3368_PD_A53_B1	6
#define RK3368_PD_A53_B2	7
#define RK3368_PD_A53_B3	8
#define RK3368_PD_SCU_B		9

/* VD_LOGIC */
#define RK3368_PD_BUS		10
#define RK3368_PD_PERI		11
#define RK3368_PD_VIO		12
#define RK3368_PD_ALIVE		13
#define RK3368_PD_VIDEO		14
#define RK3368_PD_GPU_0		15
#define RK3368_PD_GPU_1		16

/* VD_PMU */
#define RK3368_PD_PMU		17

#endif
t040587af31228d82c52267f717c9fcdb65f36335 (diff)
net: thunderx: avoid dereferencing xcv when NULL
This fixes the following smatch and coccinelle warnings: drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch] drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but dereferenced. [coccinelle] Fixes: 6465859aba1e66a5 ("net: thunderx: Add RGMII interface type support") Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/acpi/acoutput.h')