drm: Simplify return value of drm_get_last_vbltimestamp
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Sep 2014 15:36:10 +0000 (17:36 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 11 Sep 2014 11:38:48 +0000 (13:38 +0200)
commitfb446a1acdb981921de06bfde3a2178da7174481
tree7ad2ab06442121ff46e4590437e1a3c69bff0181
parent855d30b402b91f09c90f65c34ec91debaae8cf3a
drm: Simplify return value of drm_get_last_vbltimestamp

Imo u32 hints at a register value, but in reality all callers only
care whether the sampled timestamp is precise or not. So give them
just a bool.

Also move the declaration out of drmP.h, it's only used in drm_irq.c.

v2: Also drop the EXPORT_SYMBOL, spotted by Mario.

Cc: Mario Kleiner <mario.kleiner.de@gmail.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_irq.c
include/drm/drmP.h