Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5462bdc authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

cnss2: Switch to new genl structure



There's a structure change in genl family, hence switch to the new
structure in cnss2 driver.

Change-Id: Ie00045c34f90c6e66480d9972899832ba5609908
CRs-Fixed: 2555300
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent ef672f52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,6 @@ static int cnss_genl_process_msg(struct sk_buff *skb, struct genl_info *info)
static struct genl_ops cnss_genl_ops[] = {
	{
		.cmd = CNSS_GENL_CMD_MSG,
		.policy = cnss_genl_msg_policy,
		.doit = cnss_genl_process_msg,
	},
};
@@ -76,6 +75,7 @@ static struct genl_family cnss_genl_family = {
	.name = CNSS_GENL_FAMILY_NAME,
	.version = CNSS_GENL_VERSION,
	.maxattr = CNSS_GENL_ATTR_MAX,
	.policy = cnss_genl_msg_policy,
	.module = THIS_MODULE,
	.ops = cnss_genl_ops,
	.n_ops = ARRAY_SIZE(cnss_genl_ops),