public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Greg KH <gregkh@linuxfoundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCHv2] driver core: property: support for generic property
Date: Thu, 22 Jan 2015 15:05:49 +0200	[thread overview]
Message-ID: <20150122130549.GA30522@kuha.fi.intel.com> (raw)
In-Reply-To: <1421150428-10191-1-git-send-email-heikki.krogerus@linux.intel.com>

Hi,

On Tue, Jan 13, 2015 at 02:00:28PM +0200, Heikki Krogerus wrote:
> +/**
> + * struct dev_gen_prop - Generic Device Property
> + * @name: property name
> + * @val: value array
> + *
> + * Used when of_node and acpi_node are missing.
> + */
> +struct dev_gen_prop {
> +	enum dev_prop_type type;
> +	const char *name;
> +	const char **val;
> +};

I'm going to do one more change to this.

Mika proposed we should have an array of strings and numbers in this
structure instead of just strings. It will make delivering things like
flags much easier.

The structure will then look like this:

struct dev_gen_prop {
	enum dev_prop_type type;
	const char *name;
        size_t nval;
	const char **str;
	u64 *num;
};

Cheers,

-- 
heikki

      reply	other threads:[~2015-01-22 13:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13 12:00 [PATCHv2] driver core: property: support for generic property Heikki Krogerus
2015-01-22 13:05 ` Heikki Krogerus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150122130549.GA30522@kuha.fi.intel.com \
    --to=heikki.krogerus@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox