On Fri, Jun 17, 2016 at 09:33:31AM +0200, Daniel Vetter wrote:
File open/set_maseter ioctl and file close/drop_master ioctl share the same master handling code. Extract it.
Note that vmwgfx's master_set callback needs to know whether the master is a new one or has been used already, so thread this through. On the close/drop side a similar parameter existed, but wasnt used. Drop it to simplify the flow.
Cc: Chris Wilson chris@chris-wilson.co.uk Cc: Thomas Hellstrom thellstrom@vmware.com Signed-off-by: Daniel Vetter daniel.vetter@intel.com
Reviewed-by: Chris Wilson chris@chris-wilson.co.uk -Chris