Re: [PATCH v2] staging: octeon: remove SPI, POW, PKO, and Helper typedef enums

From: Max

Date: Wed Apr 15 2026 - 09:33:26 EST


Hi Dan,

> Presumably the "_e" stands for enum? Ugh. No. Don't do that.

This was because of a struct with the same name, provided there wasn't
the "_e" suffix.
Just curious, what name would you prefer over appending "_e"?

Best regards,
Maxwell

On Wed, Apr 15, 2026 at 7:32 AM Dan Carpenter <error27@xxxxxxxxx> wrote:
>
> On Wed, Apr 15, 2026 at 07:29:39AM -0500, Maxwell Doose wrote:
> > This patch removes custom typedef enums and replaces them with standard
> > enums to address the "General code review and cleanup" task in TODO.
> >
> > The following enums are affected:
> >
> > - cvmx_spi_mode_t (now enum cvmx_spi_mode)
> > - cvmx_helper_interface_mode_t (now enum cvmx_helper_interface_mode_e)
>
> Presumably the "_e" stands for enum? Ugh. No. Don't do that.
>
> regards,
> dan carpenter
>