backlight: Amalgamate hardcoded priority tables
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 15 Feb 2014 19:54:30 +0000 (19:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 15 Feb 2014 20:56:24 +0000 (20:56 +0000)
commit268842a47f05508fc7e1c69cd21e8e66a000dcde
tree1bb41ac7ef94cdadd29b1fe949aa078b9603c258
parentb71f3d8bd4d6773899c1bdc903911cf240e68ead
backlight: Amalgamate hardcoded priority tables

Our fallback path for finding the backlight interface uses a hardcoded
table of known backlight controllers in proirity order. Rather than
maintain this table twice in the midst of the KMS logic, push it to the
new set of common backlight routines.

This incorporates bugfixes from SNA to handle unknown backlights, but
usable, gracefully.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/backlight.c
src/backlight.h
src/sna/sna_display.c
src/uxa/intel_display.c