[Intel-gfx] [PATCH 2/2] drm/i915/uncore: constify the register vtables. (v2)

2021-09-08 Thread Dave Airlie
From: Dave Airlie This reworks the uncore function vtable so that it's constant. v2: fixup selftest mocking. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/intel_uncore.c | 133 +++ drivers/gpu/drm/i915/intel_uncore.h | 8 +-

[Intel-gfx] [PATCH 2/2] drm/i915/uncore: constify the register vtables.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This reworks the uncore function vtable so that it's constant. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/intel_uncore.c | 133 +--- drivers/gpu/drm/i915/intel_uncore.h | 8 +- 2 files changed, 83 insertions(+), 58

Re: [Intel-gfx] [PATCH 2/2] drm/i915/uncore: constify the register vtables.

2021-09-08 Thread Jani Nikula
On Wed, 08 Sep 2021, Dave Airlie wrote: > From: Dave Airlie > > This reworks the uncore function vtable so that it's constant. There's a bug in there, see comment inline, with that fixed, Reviewed-by: Jani Nikula > > Signed-off-by: Dave Airlie > --- > drivers/gpu/drm/i915/intel_uncore.c |

[Intel-gfx] [PATCH 2/2] drm/i915/uncore: constify the register vtables.

2021-09-07 Thread Dave Airlie
From: Dave Airlie This reworks the uncore function vtable so that it's constant. Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/intel_uncore.c | 139 +--- drivers/gpu/drm/i915/intel_uncore.h | 8 +- 2 files changed, 89 insertions(+), 58 deletions(-) diff --git