Re: [PATCHv2] driver core: property: support for generic property

From: Heikki Krogerus
Date: Thu Jan 22 2015 - 08:08:24 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/