Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1229265
| From | Geert Uytterhoeven <geert@linux-m68k.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods |
| Date | 2015-09-21 14:50 +0200 |
| Message-ID | <qb8HD-6TI-7@gated-at.bofh.it> (permalink) |
| References | <q9nB7-17k-1@gated-at.bofh.it> <q9nB7-17k-5@gated-at.bofh.it> <qb8xY-6HP-13@gated-at.bofh.it> <qb8xY-6HP-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Pantelis,
On Mon, Sep 21, 2015 at 2:36 PM, Pantelis Antoniou
<pantelis.antoniou@konsulko.com> wrote:
>> On Sep 21, 2015, at 15:35 , Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>> On Wed, Sep 16, 2015 at 6:11 PM, Pantelis Antoniou
>> <pantelis.antoniou@konsulko.com> wrote:
>>> 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");
>>
>> What about removing properties?
>
> Once upon a time there was that capability. It was removed after we didn’t have
> a good use for them yet. Do you have any? I’d be happy to re-add it :)
Aliases?
If an overlay removes e.g. a serial port, it should remove its alias, too.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/2] of: Dynamic DT updates Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2015-09-16 18:20 +0200
[PATCH v2 2/2] of: changesets: Introduce changeset helper methods Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2015-09-16 18:20 +0200
Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods Rob Herring <robh@kernel.org> - 2015-09-17 16:20 +0200
Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2015-09-18 11:20 +0200
Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods Rob Herring <robh@kernel.org> - 2015-09-18 16:30 +0200
Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2015-09-21 14:40 +0200
Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2015-09-21 14:50 +0200
Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods Geert Uytterhoeven <geert@linux-m68k.org> - 2015-09-21 15:10 +0200
Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2015-09-21 15:20 +0200
Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods Geert Uytterhoeven <geert@linux-m68k.org> - 2015-09-21 14:50 +0200
Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods Geert Uytterhoeven <geert@linux-m68k.org> - 2015-09-21 14:40 +0200
[PATCH v2 1/2] of: dynamic: Add __of_node_dupv() Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2015-09-16 18:20 +0200
Re: [PATCH v2 0/2] of: Dynamic DT updates Rob Herring <robherring2@gmail.com> - 2015-09-16 18:50 +0200
Re: [PATCH v2 0/2] of: Dynamic DT updates Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2015-09-16 21:10 +0200
csiph-web