diff options
author | Joaquín Ignacio Aramendía <samsagax@gmail.com> | 2023-04-29 11:25:48 -0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-06-08 06:41:16 -0700 |
commit | 5d06ec4279a8605b0fa53dd649d7feda3f06d0c2 (patch) | |
tree | 54dcf4cb9ec109a4d62c2ff789638db8ed409299 /tools/perf/scripts/python/task-analyzer.py | |
parent | 790dec13c0128dfec5b6bf28bef433661875e634 (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions