summaryrefslogtreecommitdiff
path: root/include/dt-bindings/power/mt2701-power.h
blob: 64cc826d642c20c4600e4a87c5c4dcbebf199813 (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
/*
 * Copyright (C) 2015 MediaTek Inc.
 *
 * 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.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 */

#ifndef _DT_BINDINGS_POWER_MT2701_POWER_H
#define _DT_BINDINGS_POWER_MT2701_POWER_H

#define MT2701_POWER_DOMAIN_CONN	0
#define MT2701_POWER_DOMAIN_DISP	1
#define MT2701_POWER_DOMAIN_MFG		2
#define MT2701_POWER_DOMAIN_VDEC	3
#define MT2701_POWER_DOMAIN_ISP		4
#define MT2701_POWER_DOMAIN_BDP		5
#define MT2701_POWER_DOMAIN_ETH		6
#define MT2701_POWER_DOMAIN_HIF		7
#define MT2701_POWER_DOMAIN_IFR_MSC	8

#endif /* _DT_BINDINGS_POWER_MT2701_POWER_H */
e17 (diff)
netfilter: nf_tables: Eliminate duplicated code in nf_tables_table_enable()
If something fails in nf_tables_table_enable(), it unregisters the chains. But the rollback code is the same as nf_tables_table_disable() almostly, except there is one counter check. Now create one wrapper function to eliminate the duplicated codes. Signed-off-by: Feng <fgao@ikuai8.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/lapb/lapb_iface.c')