From: Bhumika Goyal Date: Fri, 9 Jun 2017 06:08:18 +0000 (+0530) Subject: platform/x86: ideapad-laptop: constify rfkill_ops structure X-Git-Tag: v4.13-rc1~135^2~22 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3d59dfcd1f2610d26da2cf19646ace6692c521dc;p=karo-tx-linux.git platform/x86: ideapad-laptop: constify rfkill_ops structure Add const to rfkill_ops structure as it is only passed as an argument to the functions rfkill_alloc. This argument is of type const, so annotate the structure with const. Signed-off-by: Bhumika Goyal Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index d48962569364..4bf93c0c7e36 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -512,7 +512,7 @@ static int ideapad_rfk_set(void *data, bool blocked) return write_ec_cmd(priv->priv->adev->handle, opcode, !blocked); } -static struct rfkill_ops ideapad_rfk_ops = { +static const struct rfkill_ops ideapad_rfk_ops = { .set_block = ideapad_rfk_set, };