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

From: Guenter Roeck
Date: Sat Apr 29 2023 - 10:44:06 EST


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