On Thu, Jul 9, 2020 at 4:27 PM Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx> wrote: > On Tue, Jul 7, 2020 at 5:09 PM mnlife <mnlife@xxxxxxxxxxx> wrote: ... > > + if (size >= sizeof(prop_name)) > > + dev_warn(dev, "prop_name %s is truncated with size %d\n", > > + prop_name, size); > To me this isn't a reason for a warning. If anything, this should > simply be documented (if it's not already). +1. This can only be useful in the development cycle. CONFIG_DEBUG_GPIO easily catches this as well. -- With Best Regards, Andy Shevchenko