drm/omap: add omap_gem_validate_flags()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 10 Oct 2019 11:59:59 +0000 (13:59 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Oct 2019 14:02:40 +0000 (17:02 +0300)
commit4ecc5fbcc4d43e702a473f21fee045f55fc3beb5
treec9040160ec6b51648e735174a379e692ab35bc11
parent18d7f5ab543eeaddc3609f56b52f51da72aa99ba
drm/omap: add omap_gem_validate_flags()

Add a helper function omap_gem_validate_flags() which validates the
omap_bo flags passed from the userspace.

Also drop the dev_err() message, as the userspace can cause that at
will.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191010120000.1421-8-jjhiblot@ti.com
drivers/gpu/drm/omapdrm/omap_gem.c