sony_walk_callback moved to stay close to the other ACPI callbacks for
better code readability.
Signed-off-by: Marco Chiappero <marco@xxxxxxxxxx>
---
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -1149,24 +1149,6 @@ static struct sony_nc_event sony_127_eve
};
/*
- * ACPI callbacks
- */
-static acpi_status sony_walk_callback(acpi_handle handle, u32 level,
- void *context, void **return_value)
-{
- struct acpi_device_info *info;
-
- if (ACPI_SUCCESS(acpi_get_object_info(handle, &info))) {
- pr_warn("method: name: %4.4s, args %X\n",
- (char *)&info->name, info->param_count);
-
- kfree(info);
- }
-
- return AE_OK;
-}
-
-/*
* ACPI device
*/
static int sony_nc_function_setup(unsigned int handle)
@@ -1844,6 +1826,24 @@ static int sony_nc_snc_resume(void)
return 0;
}
+/*
+ * ACPI callbacks
+ */
+static acpi_status sony_walk_callback(acpi_handle handle, u32 level,
+ void *context, void **return_value)
+{
+ struct acpi_device_info *info;
+
+ if (ACPI_SUCCESS(acpi_get_object_info(handle, &info))) {
+ pr_warn("method: name: %4.4s, args %X\n",
+ (char *)&info->name, info->param_count);
+
+ kfree(info);
+ }
+
+ return AE_OK;
+}
+
static void sony_nc_notify(struct acpi_device *device, u32 event)
{
u8 ev = 0;
--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html