All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/27] ACPI AML helper conversion
@ 2013-09-03  0:31 Zhang Rui
  2013-09-03  0:31 ` [PATCH 01/27] olpc_xo15_sci: convert acpi_evaluate_object() to acpi_execute_simple_method() Zhang Rui
                   ` (27 more replies)
  0 siblings, 28 replies; 38+ messages in thread
From: Zhang Rui @ 2013-09-03  0:31 UTC (permalink / raw)
  To: rjw; +Cc: linux-pm, Zhang Rui

Hi, all,

ACPI has some fine grained helpers for evaluating AML,
which can be used to simplify the code a lot.
And there are a couple of new helpers introduced recently,
say, acpi_has_method/acpi_execute_simple_method, etc.

This patch set does some cleanup and converts the code to use
the AML helpers when possible.

Patch 01/27 ~ Patch 09/27:
converts acpi_evaluate_object() to acpi_execute_simple_method()
Patch 10/27 ~ Patch 20/27:
converts acpi_get_handle() to acpi_has_method()
Patch 21/27 ~ Patch 27/27:
converts acpi_evaluate_object() to acpi_evaluate_integer()

Given that there is no functional change in this patch set, and most of the
patches are not able for me to test as they are platform driver changes,
I just did build test and reboot with acpi_processor, i915 driver loaded
on an Lenovo Ultrabook, and everything works well.

Drivers that I've compiled in my build test,
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_DOCK=y
CONFIG_X86_PCC_CPUFREQ=y
CONFIG_GPIO_ACPI=y
CONFIG_DRM_I915=m
CONFIG_DRM_NOUVEAU=m
ONFIG_I2C_HID=m
CONFIG_HOTPLUG_PCI=y
CONFIG_EEEPC_LAPTOP=y
CONFIG_FUJITSU_LAPTOP=y
CONFIG_INTEL_RST=m
CONFIG_INTEL_SMARTCONNECT=y
CONFIG_INTEL_MENLOW=y
CONFIG_SONY_LAPTOP=y
CONFIG_TOPSTAR_LAPTOP=y
CONFIG_ACPI_TOSHIBA=y
CONFIG_ACPI_WMI=y
CONFIG_PNPACPI=y

Any comments are welcome. :)

thanks,
rui

------------------------------------------------------------------------
 arch/x86/platform/olpc/olpc-xo15-sci.c    |  9 +--------
 drivers/acpi/acpi_processor.c             |  6 +++---
 drivers/acpi/dock.c                       |  6 ++----
 drivers/cpufreq/pcc-cpufreq.c             |  5 ++---
 drivers/gpio/gpiolib-acpi.c               | 11 ++---------
 drivers/gpu/drm/i915/intel_acpi.c         |  5 ++---
 drivers/gpu/drm/nouveau/nouveau_acpi.c    |  6 ++----
 drivers/hid/i2c-hid/i2c-hid.c             | 16 ++++------------
 drivers/pci/hotplug/acpi_pcihp.c          |  7 ++-----
 drivers/pci/pci-acpi.c                    |  3 +--
 drivers/platform/x86/eeepc-laptop.c       |  8 +-------
 drivers/platform/x86/fujitsu-laptop.c     | 42 +++++++++---------------------------------
 drivers/platform/x86/intel-rst.c          | 48 ++++++++----------------------------------------
 drivers/platform/x86/intel-smartconnect.c | 27 ++++-----------------------
 drivers/platform/x86/intel_menlow.c       |  7 ++-----
 drivers/platform/x86/sony-laptop.c        | 28 +++++++++-------------------
 drivers/platform/x86/topstar-laptop.c     |  8 ++------
 drivers/platform/x86/toshiba_acpi.c       | 44 ++++++++++++--------------------------------
 drivers/platform/x86/wmi.c                | 30 ++++++++----------------------
 drivers/pnp/pnpacpi/core.c                | 10 +++-------
 20 files changed, 79 insertions(+), 247 deletions(-)


^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2013-09-17 12:55 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03  0:31 [PATCH 00/27] ACPI AML helper conversion Zhang Rui
2013-09-03  0:31 ` [PATCH 01/27] olpc_xo15_sci: convert acpi_evaluate_object() to acpi_execute_simple_method() Zhang Rui
2013-09-03  0:31 ` [PATCH 02/27] gpiolib-acpi: " Zhang Rui
2013-09-03  7:17   ` Mika Westerberg
2013-09-03  7:42   ` Mathias Nyman
2013-09-17 12:55   ` Linus Walleij
2013-09-03  0:31 ` [PATCH 03/27] eeepc-laptop: " Zhang Rui
2013-09-03  0:31 ` [PATCH 04/27] fujitsu-laptop: " Zhang Rui
2013-09-03 13:11   ` Jonathan Woithe
2013-09-03  0:31 ` [PATCH 05/27] intel-rst: " Zhang Rui
2013-09-03  0:31 ` [PATCH 06/27] intel-smartconnect: " Zhang Rui
2013-09-03  0:31 ` [PATCH 07/27] topstar-laptop: " Zhang Rui
2013-09-03  0:31 ` [PATCH 08/27] toshiba_acpi: " Zhang Rui
2013-09-03  0:31 ` [PATCH 09/27] wmi: " Zhang Rui
2013-09-03  0:31 ` [PATCH 10/27] pcc_freq: convert acpi_get_handle() to acpi_has_method() Zhang Rui
2013-09-03  0:31 ` [PATCH 11/27] i915: intel_acpi: " Zhang Rui
2013-09-09  8:57   ` Daniel Vetter
2013-09-03  0:32 ` [PATCH 12/27] nouveau_acpi: " Zhang Rui
2013-09-03  0:32 ` [PATCH 13/27] acpi_pcihp: " Zhang Rui
2013-09-03  0:32 ` [PATCH 14/27] pci-acpi: " Zhang Rui
2013-09-03  0:32 ` [PATCH 15/27] fujitsu-laptop: " Zhang Rui
2013-09-03 13:11   ` Jonathan Woithe
2013-09-03  0:32 ` [PATCH 16/27] intel_menlow: " Zhang Rui
2013-09-03  0:32 ` [PATCH 17/27] sony-laptop: " Zhang Rui
2013-09-03  0:32 ` [PATCH 18/27] toshiba_acpi: " Zhang Rui
2013-09-03  0:32 ` [PATCH 19/27] wmi: " Zhang Rui
2013-09-03  0:32 ` [PATCH 20/27] pnpacpi: " Zhang Rui
2013-09-03  0:32 ` [PATCH 21/27] acpi_processor: convert acpi_evaluate_object() to acpi_evaluate_integer() Zhang Rui
2013-09-03  0:32 ` [PATCH 22/27] ACPI: dock: " Zhang Rui
2013-09-03  0:32 ` [PATCH 23/27] i2c-hid: " Zhang Rui
2013-09-04 10:14   ` Jiri Kosina
2013-09-06  8:17     ` Benjamin Tissoires
2013-09-03  0:32 ` [PATCH 24/27] fujitsu-laptop: " Zhang Rui
2013-09-03 13:12   ` Jonathan Woithe
2013-09-03  0:32 ` [PATCH 25/27] intel-rst: " Zhang Rui
2013-09-03  0:32 ` [PATCH 26/27] intel-smartconnect: " Zhang Rui
2013-09-03  0:32 ` [PATCH 27/27] toshiba_acpi: " Zhang Rui
2013-09-03 11:24 ` [PATCH 00/27] ACPI AML helper conversion Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.