ACPI: CPPC: Change default error code and clean up debug messages in probe
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Mar 2022 16:03:23 +0000 (17:03 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Mar 2022 17:18:55 +0000 (18:18 +0100)
commitf21a3509842294565eec63a4332096cccab610ae
tree6b336c93bb6fd55110dbacea65001037ecce2a2b
parent40d8abf364bcab23bc715a9221a3c8623956257b
ACPI: CPPC: Change default error code and clean up debug messages in probe

Change the default error code returned by acpi_cppc_processor_probe()
from -EFAULT (which is completely inadequate) to -ENODATA and change
the debug messages printed by it to contain more information and be
more consistent.

While at it, format some white space to follow the coding style.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
drivers/acpi/cppc_acpi.c