sony-laptop.c (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) sony-laptop.c (1a251f52cfdc417c84411a056bc142cbd77baef4)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * ACPI Sony Notebook Control Driver (SNC and SPIC)
4 *
5 * Copyright (C) 2004-2005 Stelian Pop <stelian@popies.net>
6 * Copyright (C) 2007-2009 Mattia Dongili <malattia@linux.it>
7 *
8 * Parts of this driver inspired from asus_acpi.c and ibm_acpi.c

--- 743 unchanged lines hidden (view full) ---

752
753 result = (union acpi_object *) output.pointer;
754 if (!result)
755 dprintk("No return object [%s]\n", method);
756
757 return result;
758}
759
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * ACPI Sony Notebook Control Driver (SNC and SPIC)
4 *
5 * Copyright (C) 2004-2005 Stelian Pop <stelian@popies.net>
6 * Copyright (C) 2007-2009 Mattia Dongili <malattia@linux.it>
7 *
8 * Parts of this driver inspired from asus_acpi.c and ibm_acpi.c

--- 743 unchanged lines hidden (view full) ---

752
753 result = (union acpi_object *) output.pointer;
754 if (!result)
755 dprintk("No return object [%s]\n", method);
756
757 return result;
758}
759
760#define MIN(a, b) (a > b ? b : a)
761static int sony_nc_buffer_call(acpi_handle handle, char *name, u64 *value,
762 void *buffer, size_t buflen)
763{
764 int ret = 0;
765 size_t len;
766 union acpi_object *object = __call_snc_method(handle, name, value);
767
768 if (!object)

--- 2529 unchanged lines hidden (view full) ---

3298 {SONY_NC_HID, 0},
3299 {"", 0},
3300};
3301
3302static struct acpi_driver sony_nc_driver = {
3303 .name = SONY_NC_DRIVER_NAME,
3304 .class = SONY_NC_CLASS,
3305 .ids = sony_nc_device_ids,
760static int sony_nc_buffer_call(acpi_handle handle, char *name, u64 *value,
761 void *buffer, size_t buflen)
762{
763 int ret = 0;
764 size_t len;
765 union acpi_object *object = __call_snc_method(handle, name, value);
766
767 if (!object)

--- 2529 unchanged lines hidden (view full) ---

3297 {SONY_NC_HID, 0},
3298 {"", 0},
3299};
3300
3301static struct acpi_driver sony_nc_driver = {
3302 .name = SONY_NC_DRIVER_NAME,
3303 .class = SONY_NC_CLASS,
3304 .ids = sony_nc_device_ids,
3306 .owner = THIS_MODULE,
3307 .ops = {
3308 .add = sony_nc_add,
3309 .remove = sony_nc_remove,
3310 .notify = sony_nc_notify,
3311 },
3312 .drv.pm = &sony_nc_pm,
3313};
3314

--- 1524 unchanged lines hidden (view full) ---

4839 {SONY_PIC_HID, 0},
4840 {"", 0},
4841};
4842
4843static struct acpi_driver sony_pic_driver = {
4844 .name = SONY_PIC_DRIVER_NAME,
4845 .class = SONY_PIC_CLASS,
4846 .ids = sony_pic_device_ids,
3305 .ops = {
3306 .add = sony_nc_add,
3307 .remove = sony_nc_remove,
3308 .notify = sony_nc_notify,
3309 },
3310 .drv.pm = &sony_nc_pm,
3311};
3312

--- 1524 unchanged lines hidden (view full) ---

4837 {SONY_PIC_HID, 0},
4838 {"", 0},
4839};
4840
4841static struct acpi_driver sony_pic_driver = {
4842 .name = SONY_PIC_DRIVER_NAME,
4843 .class = SONY_PIC_CLASS,
4844 .ids = sony_pic_device_ids,
4847 .owner = THIS_MODULE,
4848 .ops = {
4849 .add = sony_pic_add,
4850 .remove = sony_pic_remove,
4851 },
4852 .drv.pm = &sony_pic_pm,
4853};
4854
4855static const struct dmi_system_id sonypi_dmi_table[] __initconst = {

--- 54 unchanged lines hidden ---
4845 .ops = {
4846 .add = sony_pic_add,
4847 .remove = sony_pic_remove,
4848 },
4849 .drv.pm = &sony_pic_pm,
4850};
4851
4852static const struct dmi_system_id sonypi_dmi_table[] __initconst = {

--- 54 unchanged lines hidden ---