Skip to content

Commit 2689c12

Browse files
rfs613geertu
authored andcommitted
clk: renesas: r9a06g032: Drop unused fields
Drop three unused fields from the clock descriptor structure, and update the macros for filling such structures accordingly. The values for such fields are kept in the source code, now unused, in case they are needed later. Signed-off-by: Ralph Siemsen <[email protected]> Reviewed-by: Miquel Raynal <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent a1aae0a commit 2689c12

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

drivers/clk/renesas/r9a06g032-clocks.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
#define R9A06G032_SYSCTRL_DMAMUX 0xA0
3131

3232
struct r9a06g032_gate {
33-
u16 gate, reset, ready, midle,
34-
scon, mirack, mistat;
33+
u16 gate, reset, ready, midle;
34+
/* Unused fields omitted to save space */
35+
/* u16 scon, mirack, mistat; */
3536
};
3637

3738
enum gate_type {
@@ -69,14 +70,18 @@ struct r9a06g032_clkdesc {
6970
};
7071
};
7172

73+
/*
74+
* The last three arguments are not currently used,
75+
* but are kept in the r9a06g032_clocks table below.
76+
*/
7277
#define I_GATE(_clk, _rst, _rdy, _midle, _scon, _mirack, _mistat) { \
7378
.gate = _clk, \
7479
.reset = _rst, \
7580
.ready = _rdy, \
7681
.midle = _midle, \
77-
.scon = _scon, \
78-
.mirack = _mirack, \
79-
.mistat = _mistat \
82+
/* .scon = _scon, */ \
83+
/* .mirack = _mirack, */ \
84+
/* .mistat = _mistat */ \
8085
}
8186
#define D_GATE(_idx, _n, _src, ...) { \
8287
.type = K_GATE, \

0 commit comments

Comments
 (0)