Loading include/sound/wcd-spi.h +0 −19 Original line number Diff line number Diff line Loading @@ -35,25 +35,6 @@ struct wcd_spi_msg { u32 flags; }; #ifdef CONFIG_SND_SOC_WCD_SPI int wcd_spi_data_write(struct spi_device *spi, struct wcd_spi_msg *msg); int wcd_spi_data_read(struct spi_device *spi, struct wcd_spi_msg *msg); #else int wcd_spi_data_write(struct spi_device *spi, struct wcd_spi_msg *msg) { return -ENODEV; } int wcd_spi_data_read(struct spi_device *spi, struct wcd_spi_msg *msg) { return -ENODEV; } #endif /* End of CONFIG_SND_SOC_WCD_SPI */ struct wcd_spi_ops { struct spi_device *spi_dev; int (*read_dev)(struct spi_device *spi, struct wcd_spi_msg *msg); Loading sound/soc/codecs/wcd-spi.c +2 −4 Original line number Diff line number Diff line Loading @@ -837,7 +837,7 @@ static int wcd_spi_data_xfer(struct spi_device *spi, * about the write are encapsulated in @msg. Write size should be multiple * of 4 bytes and write address should be 4-byte aligned. */ int wcd_spi_data_write(struct spi_device *spi, static int wcd_spi_data_write(struct spi_device *spi, struct wcd_spi_msg *msg) { if (!spi || !msg) { Loading @@ -850,7 +850,6 @@ int wcd_spi_data_write(struct spi_device *spi, __func__, msg->remote_addr, msg->len); return wcd_spi_data_xfer(spi, msg, WCD_SPI_XFER_WRITE); } EXPORT_SYMBOL(wcd_spi_data_write); /* * wcd_spi_data_read: Read data from WCD SPI Loading @@ -861,7 +860,7 @@ EXPORT_SYMBOL(wcd_spi_data_write); * about the read are encapsulated in @msg. Read size should be multiple * of 4 bytes and read address should be 4-byte aligned. */ int wcd_spi_data_read(struct spi_device *spi, static int wcd_spi_data_read(struct spi_device *spi, struct wcd_spi_msg *msg) { if (!spi || !msg) { Loading @@ -874,7 +873,6 @@ int wcd_spi_data_read(struct spi_device *spi, __func__, msg->remote_addr, msg->len); return wcd_spi_data_xfer(spi, msg, WCD_SPI_XFER_READ); } EXPORT_SYMBOL(wcd_spi_data_read); static int wdsp_spi_dload_section(struct spi_device *spi, void *data) Loading Loading
include/sound/wcd-spi.h +0 −19 Original line number Diff line number Diff line Loading @@ -35,25 +35,6 @@ struct wcd_spi_msg { u32 flags; }; #ifdef CONFIG_SND_SOC_WCD_SPI int wcd_spi_data_write(struct spi_device *spi, struct wcd_spi_msg *msg); int wcd_spi_data_read(struct spi_device *spi, struct wcd_spi_msg *msg); #else int wcd_spi_data_write(struct spi_device *spi, struct wcd_spi_msg *msg) { return -ENODEV; } int wcd_spi_data_read(struct spi_device *spi, struct wcd_spi_msg *msg) { return -ENODEV; } #endif /* End of CONFIG_SND_SOC_WCD_SPI */ struct wcd_spi_ops { struct spi_device *spi_dev; int (*read_dev)(struct spi_device *spi, struct wcd_spi_msg *msg); Loading
sound/soc/codecs/wcd-spi.c +2 −4 Original line number Diff line number Diff line Loading @@ -837,7 +837,7 @@ static int wcd_spi_data_xfer(struct spi_device *spi, * about the write are encapsulated in @msg. Write size should be multiple * of 4 bytes and write address should be 4-byte aligned. */ int wcd_spi_data_write(struct spi_device *spi, static int wcd_spi_data_write(struct spi_device *spi, struct wcd_spi_msg *msg) { if (!spi || !msg) { Loading @@ -850,7 +850,6 @@ int wcd_spi_data_write(struct spi_device *spi, __func__, msg->remote_addr, msg->len); return wcd_spi_data_xfer(spi, msg, WCD_SPI_XFER_WRITE); } EXPORT_SYMBOL(wcd_spi_data_write); /* * wcd_spi_data_read: Read data from WCD SPI Loading @@ -861,7 +860,7 @@ EXPORT_SYMBOL(wcd_spi_data_write); * about the read are encapsulated in @msg. Read size should be multiple * of 4 bytes and read address should be 4-byte aligned. */ int wcd_spi_data_read(struct spi_device *spi, static int wcd_spi_data_read(struct spi_device *spi, struct wcd_spi_msg *msg) { if (!spi || !msg) { Loading @@ -874,7 +873,6 @@ int wcd_spi_data_read(struct spi_device *spi, __func__, msg->remote_addr, msg->len); return wcd_spi_data_xfer(spi, msg, WCD_SPI_XFER_READ); } EXPORT_SYMBOL(wcd_spi_data_read); static int wdsp_spi_dload_section(struct spi_device *spi, void *data) Loading