Merge tag 'tpm-030822' of https://source.denx.de/u-boot/custodians/u-boot-tpm
[platform/kernel/u-boot.git] / include / i2s.h
index 28f6184..c9fbeb5 100644 (file)
@@ -78,7 +78,7 @@ struct i2s_reg {
 /* This structure stores the i2s related information */
 struct i2s_uc_priv {
        unsigned int rfs;               /* LR clock frame size */
-       unsigned int bfs;               /* Bit slock frame size */
+       unsigned int bfs;               /* Bit clock frame size */
        unsigned int audio_pll_clk;     /* Audio pll frequency in Hz */
        unsigned int samplingrate;      /* sampling rate */
        unsigned int bitspersample;     /* bits per sample */
@@ -108,7 +108,7 @@ struct i2s_ops {
  * @dev: I2C device
  * @data: Data buffer to play
  * @data_size: Size of data buffer in bytes
- * @return 0 if OK, -ve on error
+ * Return: 0 if OK, -ve on error
  */
 int i2s_tx_data(struct udevice *dev, void *data, uint data_size);
 
@@ -118,18 +118,9 @@ int i2s_tx_data(struct udevice *dev, void *data, uint data_size);
  * @param pi2s_tx      pointer of i2s transmitter parameter structure.
  * @param data         address of the data buffer
  * @param data_size    size of the data (in bytes)
- * @return             int value 0 for success, -1 in case of error
+ * Return:             int value 0 for success, -1 in case of error
  */
 int i2s_transfer_tx_data(struct i2s_uc_priv *pi2s_tx, void *data,
                         uint data_size);
 
-/*
- * Initialise i2s transmiter
- *
- * @param pi2s_tx      pointer of i2s transmitter parameter structure.
- *
- * @return             int value 0 for success, -1 in case of error
- */
-int i2s_tx_init(struct i2s_uc_priv *pi2s_tx);
-
 #endif /* __I2S_H__ */