gnss: ubx: make struct ubx_gserial_ops static
authorColin Ian King <colin.king@canonical.com>
Mon, 16 Jul 2018 10:42:02 +0000 (12:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2018 10:48:07 +0000 (12:48 +0200)
The structure ubx_gserial_ops is local to the source and does not need
to be in global scope, so make it static.

Cleans up sparse warning:
symbol 'ubx_gserial_ops' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gnss/ubx.c

index 902b6854b7db6a79fd8a566a2242c81522bf45a8..12568aebb7f6aed96fd96410f82f9607f8ec5beb 100644 (file)
@@ -59,7 +59,7 @@ static int ubx_set_power(struct gnss_serial *gserial,
        return -EINVAL;
 }
 
-const struct gnss_serial_ops ubx_gserial_ops = {
+static const struct gnss_serial_ops ubx_gserial_ops = {
        .set_power = ubx_set_power,
 };