提交 e38f052b 编写于 作者: A Axel Lin 提交者: Matthew Garrett

msi-laptop: make struct rfkill_ops const

rfkill uses a const struct rfkill_ops pointer.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Lennart Poettering <mzxreary@0pointer.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NMatthew Garrett <mjg@redhat.com>
上级 67af7111
......@@ -562,15 +562,15 @@ static int rfkill_threeg_set(void *data, bool blocked)
return 0;
}
static struct rfkill_ops rfkill_bluetooth_ops = {
static const struct rfkill_ops rfkill_bluetooth_ops = {
.set_block = rfkill_bluetooth_set
};
static struct rfkill_ops rfkill_wlan_ops = {
static const struct rfkill_ops rfkill_wlan_ops = {
.set_block = rfkill_wlan_set
};
static struct rfkill_ops rfkill_threeg_ops = {
static const struct rfkill_ops rfkill_threeg_ops = {
.set_block = rfkill_threeg_set
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册