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    [W:0.023 / U:90.392 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site