greybus: audio_apbridgea: fix two return values

Errno -ENOSYS is reserved for missing syscalls, replace it with
-EOPNOTSUPP for the the two stub operations that used it.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Johan Hovold 2016-05-19 16:20:15 +02:00 committed by Greg Kroah-Hartman
parent 0bba4fb53a
commit deda6aaf66

View File

@ -78,7 +78,7 @@ int gb_audio_apbridgea_get_tx_delay(struct gb_connection *connection,
__u16 i2s_port, __u32 *delay)
{
/* TODO: implement */
return -ENOSYS;
return -EOPNOTSUPP;
}
EXPORT_SYMBOL_GPL(gb_audio_apbridgea_get_tx_delay);
@ -152,7 +152,7 @@ int gb_audio_apbridgea_get_rx_delay(struct gb_connection *connection,
__u16 i2s_port, __u32 *delay)
{
/* TODO: implement */
return -ENOSYS;
return -EOPNOTSUPP;
}
EXPORT_SYMBOL_GPL(gb_audio_apbridgea_get_rx_delay);