Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: rsnd: moves clkout_name to top of the file

This patch moves clkout_name to top of the file to handling both
clkin/clkout in the same place.

This is prepare for R-Car Gen4 support.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87wn525emc.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
da2f9e85 4bbff16d

+7 -6
+7 -6
sound/soc/sh/rcar/adg.c
··· 59 59 [CLKI] = "clk_i", 60 60 }; 61 61 62 + static const char * const clkout_name[] = { 63 + [CLKOUT] = "audio_clkout", 64 + [CLKOUT1] = "audio_clkout1", 65 + [CLKOUT2] = "audio_clkout2", 66 + [CLKOUT3] = "audio_clkout3", 67 + }; 68 + 62 69 static u32 rsnd_adg_calculate_rbgx(unsigned long div) 63 70 { 64 71 int i; ··· 472 465 unsigned long req_48kHz_rate, req_441kHz_rate; 473 466 int i, req_size; 474 467 const char *parent_clk_name = NULL; 475 - static const char * const clkout_name[] = { 476 - [CLKOUT] = "audio_clkout", 477 - [CLKOUT1] = "audio_clkout1", 478 - [CLKOUT2] = "audio_clkout2", 479 - [CLKOUT3] = "audio_clkout3", 480 - }; 481 468 int brg_table[] = { 482 469 [CLKA] = 0x0, 483 470 [CLKB] = 0x1,