lkml.org 
[lkml]   [2012]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] ACPI / PM: Fix error messages in drivers/acpi/bus.c
Hi,

> --- linux.orig/drivers/acpi/bus.c
> +++ linux/drivers/acpi/bus.c
> @@ -182,6 +182,24 @@ EXPORT_SYMBOL(acpi_bus_get_private_data)
> Power Management
> -------------------------------------------------------------------------- */
>
> +static char *state_string(int state)
> +{
> + switch (state) {
> + case ACPI_STATE_D0:
> + return "D0";
> + case ACPI_STATE_D1:
> + return "D1";

"const char", please?

In general: nice work, thanks!

Andreas Mohr


\
 
 \ /
  Last update: 2012-05-20 12:21    [from the cache]
©2003-2011 Jasper Spaans