mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branches 'sony-laptop', 'bugzilla-14247' and 'bugzilla-14271' into release
This commit is contained in:
commit
6effe5f577
348 changed files with 14700 additions and 13981 deletions
|
|
@ -232,10 +232,8 @@ static int ec_poll(struct acpi_ec *ec)
|
|||
}
|
||||
advance_transaction(ec, acpi_ec_read_status(ec));
|
||||
} while (time_before(jiffies, delay));
|
||||
if (!ec->curr->irq_count ||
|
||||
(acpi_ec_read_status(ec) & ACPI_EC_FLAG_IBF))
|
||||
if (acpi_ec_read_status(ec) & ACPI_EC_FLAG_IBF)
|
||||
break;
|
||||
/* try restart command if we get any false interrupts */
|
||||
pr_debug(PREFIX "controller reset, restart transaction\n");
|
||||
spin_lock_irqsave(&ec->curr_lock, flags);
|
||||
start_transaction(ec);
|
||||
|
|
|
|||
|
|
@ -1052,6 +1052,8 @@ static void acpi_device_set_id(struct acpi_device *device)
|
|||
device->flags.bus_address = 1;
|
||||
}
|
||||
|
||||
kfree(info);
|
||||
|
||||
/*
|
||||
* Some devices don't reliably have _HIDs & _CIDs, so add
|
||||
* synthetic HIDs to make sure drivers can find them.
|
||||
|
|
@ -1325,13 +1327,8 @@ static int acpi_bus_scan(acpi_handle handle, struct acpi_bus_ops *ops,
|
|||
struct acpi_device **child)
|
||||
{
|
||||
acpi_status status;
|
||||
struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
|
||||
void *device = NULL;
|
||||
|
||||
acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);
|
||||
printk(KERN_INFO PREFIX "Enumerating devices from [%s]\n",
|
||||
(char *) buffer.pointer);
|
||||
|
||||
status = acpi_bus_check_add(handle, 0, ops, &device);
|
||||
if (ACPI_SUCCESS(status))
|
||||
acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX,
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ static int acpi_video_device_brightness_open_fs(struct inode *inode,
|
|||
struct file *file);
|
||||
static ssize_t acpi_video_device_write_brightness(struct file *file,
|
||||
const char __user *buffer, size_t count, loff_t *data);
|
||||
static struct file_operations acpi_video_device_brightness_fops = {
|
||||
static const struct file_operations acpi_video_device_brightness_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = acpi_video_device_brightness_open_fs,
|
||||
.read = seq_read,
|
||||
|
|
|
|||
Loading…
Reference in a new issue