diff options
| author | Peter Wu <peter@lekensteyn.nl> | 2016-07-15 15:12:15 +0200 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2016-11-20 01:17:02 +0000 |
| commit | 16ed0c9cfba7917295d7ebb730421f1cb674fc71 (patch) | |
| tree | ee1a06d361dcbe0fd3a8c4551a6b23745302c8cf /include | |
| parent | ad41f2c009b235caf4f8f63bf1520661c019b271 (diff) | |
drm/nouveau/acpi: ensure matching ACPI handle and supported functions
commit df42194a9ac2678bf086c2c5372e125e742b0ee7 upstream.
Ensure that the returned set of supported DSM functions (MUX, Optimus)
match the ACPI handle that is set in nouveau_dsm_pci_probe.
As there are no machines with a MUX function on just one PCI device and
an Optimus on another, there should not be a functional impact. This
change however makes this implicit assumption more obvious.
Convert int to bool and rename has_dsm to has_mux while at it. Let the
caller set nouveau_dsm_priv.dhandle as needed.
v2: pass dhandle to the caller.
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Acked-by: Dave Airlie <airlied@redhat.com
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
