Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Forked from BeagleBoard.org / Linux
Loading
user avatar
Pantelis Antoniou authored
Changesets are very powerful, but the lack of a helper API
makes using them cumbersome. Introduce a simple copy based
API that makes things considerably easier.

To wit, adding a property using the raw API.

	struct property *prop;
	prop = kzalloc(sizeof(*prop)), GFP_KERNEL);
	prop->name = kstrdup("compatible");
	prop->value = kstrdup("foo,bar");
	prop->length = strlen(prop->value) + 1;
	of_changeset_add_property(ocs, np, prop);

while using the helper API

	of_changeset_add_property_string(ocs, np, "compatible",
			"foo,bar");

Signed-off-by: default avatarPantelis Antoniou <pantelis.antoniou@konsulko.com>
1ac64cb9
Name Last commit Last update