sync with acpi_driver_data(device)
and acpi_evaluate_integer(..., long long)
changes that happened since this driver
was checked in.
Signed-off-by: Len Brown <len.brown@intel.com>
static inline int acpi_pcc_get_sqty(struct acpi_device *device)
{
- unsigned long s;
+ unsigned long long s;
acpi_status status;
ACPI_FUNCTION_TRACE("acpi_pcc_get_sqty");
struct input_dev *hotk_input_dev = pcc->input_dev;
int rc;
int key_code, hkey_num;
- unsigned long result;
+ unsigned long long result;
ACPI_FUNCTION_TRACE("acpi_pcc_generate_keyinput");
pcc->device = device;
pcc->handle = device->handle;
pcc->num_sifr = num_sifr;
- acpi_driver_data(device) = pcc;
+ device->driver_data = pcc;
strcpy(acpi_device_name(device), ACPI_PCC_DEVICE_NAME);
strcpy(acpi_device_class(device), ACPI_PCC_CLASS);