On Thu, Apr 11, 2024 at 07:50:46PM +0300, Andy Shevchenko wrote: > On Thu, Apr 11, 2024 at 7:44 PM Charles Keepax > <ckeepax@xxxxxxxxxxxxxxxxxxxxx> wrote: > > On Thu, Apr 11, 2024 at 04:25:25PM +0300, Andy Shevchenko wrote: > > > On Thu, Apr 11, 2024 at 12:06 PM Charles Keepax > > > <ckeepax@xxxxxxxxxxxxxxxxxxxxx> wrote: > > ... > > > > > +config GPIO_SWNODE_UNDEFINED > > > > + bool > > > > > > But why did you remove the help? Please, put it back. > > > > Sorry didn't realise you still wanted it will pop it back. > > No, I don't want it to be user-selectable. > Yeah I get that just didn't realise you also wanted the help, they are technically orthogonal but most non-user selectable things don't define a help. > Maybe something like > > if (IS_ENABLED(...) && > !strcmp(...)) > Aye that is what I just added. > > > > + ret = software_node_register(&swnode_gpio_undefined); > > > > + if (ret < 0) > > > > + pr_err("gpiolib: failed to register swnode: %d\n", ret); > > > > > > Instead of this prefix, define pr_fmt() > > > > Little iffy on this, there are other prints in gpiolib that do it > > this way as well, I guess I could add a patch to convert > > everything but its starting to get a little out of the thrust of > > what I am doing here. > > That's why I'm talking only about this (gpiolib-swnode) module where > you can have it as > > "gpiolib: swnode: " fmt > > or alike > Alright will add this too. Thanks, Charles