> El 4 mar 2021, a las 13:12, Andy Shevchenko <[email protected]> > escribió: > > On Thu, Mar 4, 2021 at 1:13 PM Álvaro Fernández Rojas <[email protected]> > wrote: >>> El 4 mar 2021, a las 11:49, Andy Shevchenko <[email protected]> >>> escribió: >>> On Thu, Mar 4, 2021 at 10:57 AM Álvaro Fernández Rojas >>> <[email protected]> wrote: > > ... > >>>> + static const unsigned int bcm6328_mux[] = { >>>> + BCM6328_MUX_LO_REG, >>>> + BCM6328_MUX_HI_REG, >>> >>>> + BCM6328_MUX_OTHER_REG >>> >>> When it's not terminator add a comma, otherwise remove a comma. > >> … so you want me to add a comma or not? > > Hmm... you tell me! If this is a list which covers all possible cases > _and_ the last one is the kinda maximum value (aka terminator), then > comma is not needed, otherwise add it (to me feels like the latter > should be done here). Well… Then it shouldn’t be needed, since this is a list which covers all possible cases and the last one is a terminator. > >>> Also, why is it inside a function? It's anyway global and constant. >> >> Because this is only used by this function and I’m used to doing this to >> comply with MISRA C 2004 at work :) > > It makes code a bit harder to read. Ok, I will make it global in the next version. > >>>> + }; > > -- > With Best Regards, > Andy Shevchenko
- Re: [PATCH v4 02/15] gpio: regmap: set g... Álvaro Fernández Rojas
- Re: [PATCH v4 02/15] gpio: regmap: s... Andy Shevchenko
- Re: [PATCH v4 02/15] gpio: regma... Álvaro Fernández Rojas
- Re: [PATCH v4 02/15] gpio: ... Andy Shevchenko
- [PATCH v4 04/15] Documentation: add BCM6328 pinco... Álvaro Fernández Rojas
- Re: [PATCH v4 04/15] Documentation: add BCM6... Michael Walle
- [PATCH v4 05/15] pinctrl: add a pincontrol driver... Álvaro Fernández Rojas
- Re: [PATCH v4 05/15] pinctrl: add a pincontr... Andy Shevchenko
- Re: [PATCH v4 05/15] pinctrl: add a pinc... Álvaro Fernández Rojas
- Re: [PATCH v4 05/15] pinctrl: add a ... Andy Shevchenko
- Re: [PATCH v4 05/15] pinctrl: ad... Álvaro Fernández Rojas
- Re: [PATCH v4 05/15] pinctr... Andy Shevchenko
- Re: [PATCH v4 05/15] pi... Álvaro Fernández Rojas
- Re: [PATCH v4 05/15] pi... Andy Shevchenko
- [PATCH v4 06/15] Documentation: add BCM6358 pinco... Álvaro Fernández Rojas
- [PATCH v4 08/15] Documentation: add BCM6362 pinco... Álvaro Fernández Rojas
- [PATCH v4 12/15] Documentation: add BCM63268 pinc... Álvaro Fernández Rojas
- [PATCH v4 09/15] pinctrl: add a pincontrol driver... Álvaro Fernández Rojas
- [PATCH v4 10/15] Documentation: add BCM6368 pinco... Álvaro Fernández Rojas
- [PATCH v4 11/15] pinctrl: add a pincontrol driver... Álvaro Fernández Rojas
- [PATCH v4 07/15] pinctrl: add a pincontrol driver... Álvaro Fernández Rojas

