[PATCH 2/2] drm/i915: Return a drm_mode_status enum in the mode_valid vfuncs

Thierry Reding thierry.reding at gmail.com
Mon Dec 2 05:42:56 PST 2013


On Thu, Nov 28, 2013 at 04:49:52PM +0100, Daniel Vetter wrote:
> On Thu, Nov 28, 2013 at 03:29:18PM +0000, Damien Lespiau wrote:
> > We had some mode_valid() vfuncs returning an int, others the enum. Let's
> > use the latter everywhere.
> > 
> > Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
> 
> Yeah, makes sense. Queued for -next, thanks for the patch.
> 
> -Daniel
> > ---
> >  drivers/gpu/drm/i915/intel_crt.c  | 5 +++--
> >  drivers/gpu/drm/i915/intel_dp.c   | 2 +-
> >  drivers/gpu/drm/i915/intel_dsi.c  | 5 +++--
> >  drivers/gpu/drm/i915/intel_dvo.c  | 5 +++--
> >  drivers/gpu/drm/i915/intel_hdmi.c | 5 +++--
> >  drivers/gpu/drm/i915/intel_lvds.c | 5 +++--
> >  drivers/gpu/drm/i915/intel_sdvo.c | 5 +++--
> >  7 files changed, 19 insertions(+), 13 deletions(-)

Shouldn't you be updating all other drivers as well? GCC doesn't seem to
complain about it, but it's still an inconsistency.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131202/e299ada6/attachment.pgp>


More information about the dri-devel mailing list