From: Nathan Chancellor <natechancellor@gmail.com> To: Linus Walleij <linus.walleij@linaro.org> Cc: Nick Desaulniers <ndesaulniers@google.com>, "open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Subject: Re: [PATCH] pinctrl: generic: Avoid several implicit enum conversions Date: Fri, 9 Nov 2018 08:21:57 -0700 [thread overview] Message-ID: <20181109152157.GA5970@flashbox> (raw) In-Reply-To: <CACRpkdYDgV8RWifqzu-MQxD-ZR87UeyQkxXuwB-yuXoUb0Mtbw@mail.gmail.com> On Fri, Nov 09, 2018 at 10:29:02AM +0100, Linus Walleij wrote: > On Thu, Nov 1, 2018 at 1:03 AM Nathan Chancellor > <natechancellor@gmail.com> wrote: > > [Me] > > > A slightly lesser evil variant is to add a few PIN_CONFIG_CUSTOM_1 > > > PIN_CONFIG_CUSTOM_2 etc at the end of the enum and just > > > #define MY_CONFIG PIN_CONFIG_CUSTOM_1 > > > in all drivers that use these. > > > > > > > Some drivers actually just define their pin config params like: > > > > #define VAR (PIN_CONFIG_END + 1) > > > > In fact, more drivers do that than not. I will go ahead and draft some > > patches tonight and send them out tonight to see what driver authors > > think. > > This seems to work. Is your kernel compile working without > warnings after this round of patches? > Yes, there are no more enum-conversion warnings and the tree shows there are no more enums that use PIN_CONFIG_END. > Thanks for driving this BTW. > Thank you for being patient and forcing me to come up with a solution that works for you! Nathan > Yours, > Linus Walleij
prev parent reply other threads:[~2018-11-09 15:22 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-09-25 6:18 Nathan Chancellor 2018-09-25 10:58 ` Linus Walleij 2018-09-25 16:14 ` Nathan Chancellor 2018-09-25 16:23 ` Nick Desaulniers 2018-10-25 21:04 ` Nathan Chancellor 2018-10-31 13:33 ` Linus Walleij 2018-11-01 0:03 ` Nathan Chancellor 2018-11-01 11:46 ` David Laight 2018-11-09 9:29 ` Linus Walleij 2018-11-09 15:21 ` Nathan Chancellor [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20181109152157.GA5970@flashbox \ --to=natechancellor@gmail.com \ --cc=linus.walleij@linaro.org \ --cc=linux-gpio@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=ndesaulniers@google.com \ --subject='Re: [PATCH] pinctrl: generic: Avoid several implicit enum conversions' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).