Re: [PATCH] hwmon: (oxp-sensors) Use less convoluted enum cast

From: Joaquin Aramendia
Date: Sat Apr 29 2023 - 10:49:09 EST


Thanks, Guenter!

El sáb, 29 abr 2023 a la(s) 11:43, Guenter Roeck (linux@xxxxxxxxxxxx) escribió:
>
> On Sat, Apr 29, 2023 at 11:25:48AM -0300, Joaquín Ignacio Aramendía wrote:
> > Change
> >
> > .driver_data = (void *) &(enum type) {enum_literal};
> >
> > to more readable form:
> >
> > .driver_data = (void *) enum_literal;
> >
> > and corresponding cast usage as board type flag.
> >
> > Signed-off-by: Joaquín Ignacio Aramendía <samsagax@xxxxxxxxx>
>
> Applied to hwmon-next.
>
> Thanks,
> Guenter



--
Joaquín I. Aramendía