dtrm/edid: Allow comma separated edid binaries. (v3)
authorBob Paauwe <bob.j.paauwe@intel.com>
Thu, 27 Aug 2015 17:04:13 +0000 (10:04 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Sep 2015 11:45:51 +0000 (13:45 +0200)
commit96206e2922c114b13cadefa03b9f340b58fee13c
tree7c3853455297f4511fa7aba5337f229fbf84f1ef
parentf8aeb41c4b7e9de0a4df4ed1ba78cd6ee5c87281
dtrm/edid: Allow comma separated edid binaries. (v3)

Allow comma separated filenames in the edid_firmware parameter.

For example:

edid_firmware=eDP-1:edid/1280x480.bin,DP-2:edid/1920x1080.bin

v2: Use strsep() to simplify parsing of comma seperated string. (Matt)
    Move initial bail before strdup. (Matt)
v3: Changed conditionals after while loop to make more readable (Jani)
    Updated kernel-parameters.txt to reflect changes (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Bob Paauwe <bob.j.paauwe@intel.com>
[danvet: Flatten else control flow and appease checkpatch.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Documentation/kernel-parameters.txt
drivers/gpu/drm/drm_edid_load.c