[PATCH 2/5] introduce open_hw() function

2012-03-03 Thread Sascha Hauer
probe_hw opens the hardware in the order we want it: first try devname, if this is NULL then try the KMSDEVICE environment variable and as a last fallback use "/dev/dri/card0". Instead of implementing the same code again when really opening the device move the code to a open_hw() function and let

[PATCH 2/5] introduce open_hw() function

2012-03-03 Thread Sascha Hauer
probe_hw opens the hardware in the order we want it: first try devname, if this is NULL then try the KMSDEVICE environment variable and as a last fallback use /dev/dri/card0. Instead of implementing the same code again when really opening the device move the code to a open_hw() function and let