diff options
| author | 2022-03-03 20:19:30 +0200 | |
|---|---|---|
| committer | 2022-03-04 11:15:20 +0200 | |
| commit | 63a78bbb418c6e047bd002616bd4de9add0b6974 (patch) | |
| tree | edf97725b1417e0b95bb1f7d99294093ff35f107 /tools/perf/scripts/python | |
| parent | drm/i915/gmbus: pass gpio reg to intel_gpio_setup() (diff) | |
drm/i915/gmbus: alloc intel_gmbus dynamically
Allocate the individual intel_gmbus structs dynamically. This lets us
hide struct intel_gmbus inside intel_gmbus.c completely. Also use the
cleanup function on the error path to avoid duplication.
Leave #include <linux/i2c.h> in i915_drv.h for now, as it pulls in a
bunch of implicit dependencies.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220303181931.1661767-4-jani.nikula@intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
