summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-04-06 00:00:57 +0000
committerMihail Zenkov <mihail.zenkov@gmail.com>2016-04-06 00:00:57 +0000
commitc5c4ea46481a492c13e5c604906c8c757316e452 (patch)
tree34df9d47885633b37cc6f4aa079be9ea8f9266e5 /firmware/target/hosted
parentc7daef36c5c75b8541d38cec4793826ab085d5ad (diff)
downloadrockbox-c5c4ea46481a492c13e5c604906c8c757316e452.tar.gz
rockbox-c5c4ea46481a492c13e5c604906c8c757316e452.zip
fix red
Change-Id: Iaec43120ef213d9a3c77201bdf50ebbedd1c5b76
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r--firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c
index 24362af0c0..972b2b4a4e 100644
--- a/firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c
+++ b/firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c
@@ -61,13 +61,11 @@ void ascodec_close(void)
close(afe_dev);
}
-/* Write register.
- * Returns >= 0 if success, -1 if fail
- */
-int ascodec_write(unsigned int reg, unsigned int value)
+/* Write register */
+void ascodec_write(unsigned int reg, unsigned int value)
{
struct codec_req_struct r = { .reg = reg, .value = value };
- return ioctl(afe_dev, IOCTL_REG_WRITE, &r);
+ ioctl(afe_dev, IOCTL_REG_WRITE, &r);
}
/* Read register.