Commit 45863db5a97360b6843a0488621342819e9a6e62

Authored by Simon Glass
1 parent 2a04957241

dm: sound: Rename samsung_i2s_priv to i2s_uc_priv

This structure contains information that is likely needed by any i2s
driver so it seems useful to attach it to the (forthcoming) i2c uclass.
For now, just rename it.

Signed-off-by: Simon Glass <sjg@chromium.org>

Showing 3 changed files with 10 additions and 10 deletions Side-by-side Diff

drivers/sound/samsung-i2s.c
... ... @@ -255,7 +255,7 @@
255 255 return 0;
256 256 }
257 257  
258   -int i2s_transfer_tx_data(struct samsung_i2s_priv *pi2s_tx, unsigned int *data,
  258 +int i2s_transfer_tx_data(struct i2s_uc_priv *pi2s_tx, unsigned int *data,
259 259 unsigned long data_size)
260 260 {
261 261 int i;
... ... @@ -293,7 +293,7 @@
293 293 return 0;
294 294 }
295 295  
296   -int i2s_tx_init(struct samsung_i2s_priv *pi2s_tx)
  296 +int i2s_tx_init(struct i2s_uc_priv *pi2s_tx)
297 297 {
298 298 int ret;
299 299 struct i2s_reg *i2s_reg =
drivers/sound/sound-i2s.c
... ... @@ -20,15 +20,15 @@
20 20 #define SOUND_400_HZ 400
21 21 #define SOUND_BITS_IN_BYTE 8
22 22  
23   -static struct samsung_i2s_priv g_i2stx_pri;
  23 +static struct i2s_uc_priv g_i2stx_pri;
24 24  
25 25 /*
26 26 * get_sound_i2s_values gets values for i2s parameters
27 27 *
28   - * @param samsung_i2s_priv i2s transmitter transfer param structure
  28 + * @param i2s_uc_priv i2s transmitter transfer param structure
29 29 * @param blob FDT blob if enabled else NULL
30 30 */
31   -static int get_sound_i2s_values(struct samsung_i2s_priv *i2s, const void *blob)
  31 +static int get_sound_i2s_values(struct i2s_uc_priv *i2s, const void *blob)
32 32 {
33 33 int node;
34 34 int error = 0;
... ... @@ -97,7 +97,7 @@
97 97 * @param pi2s_tx i2s parameters required by codec
98 98 * @return int value, 0 for success
99 99 */
100   -static int codec_init(const void *blob, struct samsung_i2s_priv *pi2s_tx)
  100 +static int codec_init(const void *blob, struct i2s_uc_priv *pi2s_tx)
101 101 {
102 102 int ret;
103 103 const char *codectype;
... ... @@ -145,7 +145,7 @@
145 145 int sound_init(const void *blob)
146 146 {
147 147 int ret;
148   - struct samsung_i2s_priv *pi2s_tx = &g_i2stx_pri;
  148 + struct i2s_uc_priv *pi2s_tx = &g_i2stx_pri;
149 149  
150 150 /* Get the I2S Values */
151 151 if (get_sound_i2s_values(pi2s_tx, blob) < 0) {
... ... @@ -76,7 +76,7 @@
76 76 };
77 77  
78 78 /* This structure stores the i2s related information */
79   -struct samsung_i2s_priv {
  79 +struct i2s_uc_priv {
80 80 unsigned int rfs; /* LR clock frame size */
81 81 unsigned int bfs; /* Bit slock frame size */
82 82 unsigned int audio_pll_clk; /* Audio pll frequency in Hz */
... ... @@ -96,7 +96,7 @@
96 96 *
97 97 * @return int value 0 for success, -1 in case of error
98 98 */
99   -int i2s_transfer_tx_data(struct samsung_i2s_priv *pi2s_tx, uint *data,
  99 +int i2s_transfer_tx_data(struct i2s_uc_priv *pi2s_tx, unsigned int *data,
100 100 unsigned long data_size);
101 101  
102 102 /*
... ... @@ -106,7 +106,7 @@
106 106 *
107 107 * @return int value 0 for success, -1 in case of error
108 108 */
109   -int i2s_tx_init(struct samsung_i2s_priv *pi2s_tx);
  109 +int i2s_tx_init(struct i2s_uc_priv *pi2s_tx);
110 110  
111 111 #endif /* __I2S_H__ */