diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-07-16 12:42:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-16 12:48:07 +0200 |
commit | 55570f1a441787f67efe1aef3b5deae431ca7ee9 (patch) | |
tree | 61b521fbc7c92fe54483bc2147a3565c67f1bb3b | |
parent | 8d62fe9499b8eb027837892aad8fb52d83a52a41 (diff) | |
download | blackbird-obmc-linux-55570f1a441787f67efe1aef3b5deae431ca7ee9.tar.gz blackbird-obmc-linux-55570f1a441787f67efe1aef3b5deae431ca7ee9.zip |
gnss: ubx: make struct ubx_gserial_ops static
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>
-rw-r--r-- | drivers/gnss/ubx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gnss/ubx.c b/drivers/gnss/ubx.c index 902b6854b7db..12568aebb7f6 100644 --- a/drivers/gnss/ubx.c +++ b/drivers/gnss/ubx.c @@ -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, }; |