diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-05-19 16:20:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-20 16:36:43 -0700 |
commit | deda6aaf666706346866b7d828098ba9bacfb742 (patch) | |
tree | bf55dc3b34bd302e8627b1fd7f799343096f3369 /drivers/staging/greybus/audio_apbridgea.c | |
parent | 0bba4fb53adff8ee1538a654bfb5ac79298cc5dc (diff) | |
download | op-kernel-dev-deda6aaf666706346866b7d828098ba9bacfb742.zip op-kernel-dev-deda6aaf666706346866b7d828098ba9bacfb742.tar.gz |
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>
Diffstat (limited to 'drivers/staging/greybus/audio_apbridgea.c')
-rw-r--r-- | drivers/staging/greybus/audio_apbridgea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/audio_apbridgea.c b/drivers/staging/greybus/audio_apbridgea.c index a6e089d..3614707 100644 --- a/drivers/staging/greybus/audio_apbridgea.c +++ b/drivers/staging/greybus/audio_apbridgea.c @@ -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); |