]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / nouveau: replace open-coded _DSM code with helper functions
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 19 Dec 2013 12:38:22 +0000 (20:38 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 5 Jan 2014 15:07:15 +0000 (16:07 +0100)
commitaf7ab279225066761cf551c43236bad26eb0f21f
tree177e2c32c572665f4ec1b933599a4f3c13c41de1
parent38e0a8adedc0d7831f0c368ecadb17b74f3f12fb
ACPI / nouveau: replace open-coded _DSM code with helper functions

Use helper functions to simplify _DSM related code in nouveau driver.
After analyzing the ACPI _DSM related code, I changed nouveau_optimus_dsm()
to expect a buffer and nouveau_dsm() to expect an integer only.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/gpu/drm/nouveau/core/subdev/mxm/base.c
drivers/gpu/drm/nouveau/nouveau_acpi.c