[Intel-gfx] [RFC] drm/i915: Rename global i915 to i915_params
Chris Wilson
chris at chris-wilson.co.uk
Tue Sep 12 15:43:22 UTC 2017
Quoting Ville Syrjälä (2017-09-12 16:36:57)
> > diff --git a/drivers/gpu/drm/i915/i915_params.c b/drivers/gpu/drm/i915/i915_params.c
> > index 8ab003d..e26bc13 100644
> > --- a/drivers/gpu/drm/i915/i915_params.c
> > +++ b/drivers/gpu/drm/i915/i915_params.c
> > @@ -25,7 +25,7 @@
> > #include "i915_params.h"
> > #include "i915_drv.h"
> >
> > -struct i915_params i915 __read_mostly = {
> > +struct i915_params i915_params __read_mostly = {
> > .modeset = -1,
> > .panel_ignore_lid = 1,
> > .semaphores = -1,
> > @@ -67,22 +67,23 @@ struct i915_params i915 __read_mostly = {
> > .enable_gvt = false,
> > };
> >
> > -module_param_named(modeset, i915.modeset, int, 0400);
> > +module_param_named(modeset, i915_params.modeset, int, 0400);
We could clear the bulk of this patch
#define i915_param_named(name, T, perm) module_param_named(name, i915.##name, T, perm)
#define i915_param_named_unsafe(name, T, perm) module_param_named_unsafe(name, i915.##name, T, perm)
as step 1.
-Chris
More information about the Intel-gfx
mailing list