提交 55570f1a 编写于 作者: C Colin Ian King 提交者: Greg Kroah-Hartman

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NJohan Hovold <johan@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8d62fe94
...@@ -59,7 +59,7 @@ static int ubx_set_power(struct gnss_serial *gserial, ...@@ -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,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册