提交 38a234b9 编写于 作者: M Mathias Krause 提交者: Rafael J. Wysocki

ACPI / PNP: constify device IDs

Instead of re-creating the array on the stack each time
is_cmos_rtc_device() gets called, make the array 'static const'.
Signed-off-by: NMathias Krause <minipli@googlemail.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 16830985
...@@ -367,7 +367,7 @@ static struct acpi_scan_handler acpi_pnp_handler = { ...@@ -367,7 +367,7 @@ static struct acpi_scan_handler acpi_pnp_handler = {
*/ */
static int is_cmos_rtc_device(struct acpi_device *adev) static int is_cmos_rtc_device(struct acpi_device *adev)
{ {
struct acpi_device_id ids[] = { static const struct acpi_device_id ids[] = {
{ "PNP0B00" }, { "PNP0B00" },
{ "PNP0B01" }, { "PNP0B01" },
{ "PNP0B02" }, { "PNP0B02" },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册