hwmon: (oxp-sensors) Use less convoluted enum cast
authorJoaquín Ignacio Aramendía <samsagax@gmail.com>
Sat, 29 Apr 2023 14:25:48 +0000 (11:25 -0300)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 8 Jun 2023 13:41:16 +0000 (06:41 -0700)
commit5d06ec4279a8605b0fa53dd649d7feda3f06d0c2
tree54dcf4cb9ec109a4d62c2ff789638db8ed409299
parent790dec13c0128dfec5b6bf28bef433661875e634
hwmon: (oxp-sensors) Use less convoluted enum cast

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@gmail.com>
Link: https://lore.kernel.org/r/20230429142547.328125-1-samsagax@gmail.com
[groeck: Use double cast for assignment from driver_data to fix clang build warning]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/oxp-sensors.c