]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
greybus: audio_apbridgea: fix two return values
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 19 May 2016 14:20:15 +0000 (16:20 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 20 May 2016 23:36:43 +0000 (16:36 -0700)
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>
drivers/staging/greybus/audio_apbridgea.c

index a6e089d2d1a81e94cb3f9ddc1326bd9a02332efc..361470788a76ec6de14be45ce31a3b0ce9c0fe1b 100644 (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);