mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
Merge branch 'misc' into release
This commit is contained in:
commit
be6066f34c
10 changed files with 25 additions and 30 deletions
|
|
@ -56,7 +56,7 @@ ACPI_MODULE_NAME("pci_link");
|
|||
static int acpi_pci_link_add(struct acpi_device *device);
|
||||
static int acpi_pci_link_remove(struct acpi_device *device, int type);
|
||||
|
||||
static struct acpi_device_id link_device_ids[] = {
|
||||
static const struct acpi_device_id link_device_ids[] = {
|
||||
{"PNP0C0F", 0},
|
||||
{"", 0},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ static int acpi_pci_root_add(struct acpi_device *device);
|
|||
static int acpi_pci_root_remove(struct acpi_device *device, int type);
|
||||
static int acpi_pci_root_start(struct acpi_device *device);
|
||||
|
||||
static struct acpi_device_id root_device_ids[] = {
|
||||
static const struct acpi_device_id root_device_ids[] = {
|
||||
{"PNP0A03", 0},
|
||||
{"", 0},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ static int acpi_power_remove(struct acpi_device *device, int type);
|
|||
static int acpi_power_resume(struct acpi_device *device);
|
||||
static int acpi_power_open_fs(struct inode *inode, struct file *file);
|
||||
|
||||
static struct acpi_device_id power_device_ids[] = {
|
||||
static const struct acpi_device_id power_device_ids[] = {
|
||||
{ACPI_POWER_HID, 0},
|
||||
{"", 0},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ static int can_cap_in_hardware(void)
|
|||
return force_cap_on || cap_in_hardware;
|
||||
}
|
||||
|
||||
static struct acpi_device_id power_meter_ids[] = {
|
||||
static const struct acpi_device_id power_meter_ids[] = {
|
||||
{"ACPI000D", 0},
|
||||
{"", 0},
|
||||
};
|
||||
|
|
@ -534,6 +534,7 @@ static void remove_domain_devices(struct acpi_power_meter_resource *resource)
|
|||
|
||||
kfree(resource->domain_devices);
|
||||
kobject_put(resource->holders_dir);
|
||||
resource->num_domain_devices = 0;
|
||||
}
|
||||
|
||||
static int read_domain_devices(struct acpi_power_meter_resource *resource)
|
||||
|
|
@ -740,7 +741,6 @@ skip_unsafe_cap:
|
|||
|
||||
return res;
|
||||
error:
|
||||
remove_domain_devices(resource);
|
||||
remove_attrs(resource);
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ early_init_pdc(acpi_handle handle, u32 lvl, void *context, void **rv)
|
|||
return AE_OK;
|
||||
}
|
||||
|
||||
void acpi_early_processor_set_pdc(void)
|
||||
void __init acpi_early_processor_set_pdc(void)
|
||||
{
|
||||
/*
|
||||
* Check whether the system is DMI table. If yes, OSPM
|
||||
|
|
|
|||
|
|
@ -443,8 +443,7 @@ struct thermal_cooling_device_ops processor_cooling_ops = {
|
|||
#ifdef CONFIG_ACPI_PROCFS
|
||||
static int acpi_processor_limit_seq_show(struct seq_file *seq, void *offset)
|
||||
{
|
||||
struct acpi_processor *pr = (struct acpi_processor *)seq->private;
|
||||
|
||||
struct acpi_processor *pr = seq->private;
|
||||
|
||||
if (!pr)
|
||||
goto end;
|
||||
|
|
|
|||
|
|
@ -822,7 +822,10 @@ static int acpi_battery_add(struct acpi_sbs *sbs, int id)
|
|||
|
||||
static void acpi_battery_remove(struct acpi_sbs *sbs, int id)
|
||||
{
|
||||
#if defined(CONFIG_ACPI_SYSFS_POWER) || defined(CONFIG_ACPI_PROCFS_POWER)
|
||||
struct acpi_battery *battery = &sbs->battery[id];
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ACPI_SYSFS_POWER
|
||||
if (battery->bat.dev) {
|
||||
if (battery->have_sysfs_alarm)
|
||||
|
|
|
|||
Loading…
Reference in a new issue