Skip to content

Commit 55570f1

Browse files
Colin Ian Kinggregkh
authored andcommitted
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>
1 parent 8d62fe9 commit 55570f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gnss/ubx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static int ubx_set_power(struct gnss_serial *gserial,
5959
return -EINVAL;
6060
}
6161

62-
const struct gnss_serial_ops ubx_gserial_ops = {
62+
static const struct gnss_serial_ops ubx_gserial_ops = {
6363
.set_power = ubx_set_power,
6464
};
6565

0 commit comments

Comments
 (0)