Re: [PATCH v2 1/3] software node: implement reference properties

2019-09-09 Thread Andy Shevchenko
On Sat, Sep 07, 2019 at 11:23:35AM -0700, Dmitry Torokhov wrote: > On Sat, Sep 07, 2019 at 09:03:48PM +0300, Andy Shevchenko wrote: > > On Sat, Sep 07, 2019 at 10:37:24AM -0700, Dmitry Torokhov wrote: > > > On Sat, Sep 07, 2019 at 08:12:51PM +0300, Andy Shevchenko wrote: > > > > On Sat, Sep 07, 201

Re: [PATCH v2 1/3] software node: implement reference properties

2019-09-07 Thread Dmitry Torokhov
On Sat, Sep 07, 2019 at 09:03:48PM +0300, Andy Shevchenko wrote: > On Sat, Sep 07, 2019 at 10:37:24AM -0700, Dmitry Torokhov wrote: > > On Sat, Sep 07, 2019 at 08:12:51PM +0300, Andy Shevchenko wrote: > > > On Sat, Sep 07, 2019 at 09:32:40AM -0700, Dmitry Torokhov wrote: > > > > On Sat, Sep 07, 201

Re: [PATCH v2 1/3] software node: implement reference properties

2019-09-07 Thread Andy Shevchenko
On Sat, Sep 07, 2019 at 10:37:24AM -0700, Dmitry Torokhov wrote: > On Sat, Sep 07, 2019 at 08:12:51PM +0300, Andy Shevchenko wrote: > > On Sat, Sep 07, 2019 at 09:32:40AM -0700, Dmitry Torokhov wrote: > > > On Sat, Sep 07, 2019 at 07:08:19PM +0300, Andy Shevchenko wrote: > > > > On Fri, Sep 06, 201

Re: [PATCH v2 1/3] software node: implement reference properties

2019-09-07 Thread Dmitry Torokhov
On Sat, Sep 07, 2019 at 08:12:51PM +0300, Andy Shevchenko wrote: > On Sat, Sep 07, 2019 at 09:32:40AM -0700, Dmitry Torokhov wrote: > > On Sat, Sep 07, 2019 at 07:08:19PM +0300, Andy Shevchenko wrote: > > > On Fri, Sep 06, 2019 at 03:26:09PM -0700, Dmitry Torokhov wrote: > > > > > + } else i

Re: [PATCH v2 1/3] software node: implement reference properties

2019-09-07 Thread Andy Shevchenko
On Sat, Sep 07, 2019 at 09:32:40AM -0700, Dmitry Torokhov wrote: > On Sat, Sep 07, 2019 at 07:08:19PM +0300, Andy Shevchenko wrote: > > On Fri, Sep 06, 2019 at 03:26:09PM -0700, Dmitry Torokhov wrote: > > > + } else if (src->type == DEV_PROP_REF) { > > > + /* All reference properties must

Re: [PATCH v2 1/3] software node: implement reference properties

2019-09-07 Thread Dmitry Torokhov
On Sat, Sep 07, 2019 at 07:08:19PM +0300, Andy Shevchenko wrote: > On Fri, Sep 06, 2019 at 03:26:09PM -0700, Dmitry Torokhov wrote: > > It is possible to store references to software nodes in the same fashion as > > other static properties, so that users do not need to define separate > > structure

Re: [PATCH v2 1/3] software node: implement reference properties

2019-09-07 Thread Andy Shevchenko
On Fri, Sep 06, 2019 at 03:26:09PM -0700, Dmitry Torokhov wrote: > It is possible to store references to software nodes in the same fashion as > other static properties, so that users do not need to define separate > structures: > > static const struct software_node gpio_bank_b_node = { > .n

[PATCH v2 1/3] software node: implement reference properties

2019-09-06 Thread Dmitry Torokhov
It is possible to store references to software nodes in the same fashion as other static properties, so that users do not need to define separate structures: static const struct software_node gpio_bank_b_node = { .name = "B", }; static const struct property_entry simone_key_enter_props[]