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:
parent
8d62fe9499
commit
55570f1a44
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue