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>
This commit is contained in:
Colin Ian King 2018-07-16 12:42:02 +02:00 committed by Greg Kroah-Hartman
parent 8d62fe9499
commit 55570f1a44
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ static int ubx_set_power(struct gnss_serial *gserial,
return -EINVAL; return -EINVAL;
} }
const struct gnss_serial_ops ubx_gserial_ops = { static const struct gnss_serial_ops ubx_gserial_ops = {
.set_power = ubx_set_power, .set_power = ubx_set_power,
}; };