staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / arch / arm / mach-w90x900 / clock.h
blobe81c369430b32a95512f03f2b3ec045307f4fdb1
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * linux/arch/arm/mach-w90x900/clock.h
5 * Copyright (c) 2008 Nuvoton technology corporation
7 * Wan ZongShun <mcuos.com@gmail.com>
8 */
10 #include <linux/clkdev.h>
12 void nuc900_clk_enable(struct clk *clk, int enable);
13 void nuc900_subclk_enable(struct clk *clk, int enable);
15 struct clk {
16 unsigned long cken;
17 unsigned int enabled;
18 void (*enable)(struct clk *, int enable);
21 #define DEFINE_CLK(_name, _ctrlbit) \
22 struct clk clk_##_name = { \
23 .enable = nuc900_clk_enable, \
24 .cken = (1 << _ctrlbit), \
27 #define DEFINE_SUBCLK(_name, _ctrlbit) \
28 struct clk clk_##_name = { \
29 .enable = nuc900_subclk_enable, \
30 .cken = (1 << _ctrlbit), \
34 #define DEF_CLKLOOK(_clk, _devname, _conname) \
35 { \
36 .clk = _clk, \
37 .dev_id = _devname, \
38 .con_id = _conname, \