Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1348004

Re: [RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support

From One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Newsgroups linux.kernel
Subject Re: [RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support
Date 2016-03-02 13:40 +0100
Message-ID <r8eel-7A8-15@gated-at.bofh.it> (permalink)
References <r8akp-51B-5@gated-at.bofh.it> <r8akp-51B-3@gated-at.bofh.it>
Organization Intel Corporation

Show all headers | View raw


> +static int cros_ec_get_host_command_version_mask(struct cros_ec_device *ec_dev,
> +	u16 cmd, u32 *mask)
> +{
> +	struct ec_params_get_cmd_versions *pver;
> +	struct ec_response_get_cmd_versions *rver;
> +	struct cros_ec_command *msg;
> +	int ret;
> +
> +	msg = kmalloc(sizeof(*msg) + max(sizeof(*rver), sizeof(*pver)),
> +		      GFP_KERNEL);
> +	if (!msg)
> +		return -ENOMEM;
> +
> +	msg->version = 0;
> +	msg->command = EC_CMD_GET_CMD_VERSIONS;
> +	msg->insize = sizeof(rver);
> +	msg->outsize = sizeof(pver);

*rver and *pver surely ?

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2016-03-02 09:30 +0100
  Re: [RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-03-02 13:40 +0100

csiph-web