Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: ACPI / PM: Do not save/restore NVS on Sony Vaio VGN-NW130D ACPI/HEST: adjust section selection ACPI: eliminate unused variable warning for !ACPI_SLEEP ACPI/PNP: avoid section mismatch warning ACPI thermal: remove two unused functions ACPI: fix a section mismatch ACPI, APEI, use raw spinlock in ERST ACPI: video: fix build for CONFIG_ACPI=n ACPI: video: fix build for VIDEO_OUTPUT_CONTROL=n ACPI: fix allowing to add/remove multiple _OSI strings acpi: fix _OSI string setup regression ACPI: EC: Add another dmi match entry for MSI hardware ACPI battery: update status upon sysfs query ACPI ac: update AC status upon sysfs query ACPI / PM: Do not refcount power resources that can't be turned on ACPI / PM: Check device state before refcounting power resources
This commit is contained in:
@@ -219,7 +219,7 @@ static inline int acpi_video_display_switch_support(void)
|
||||
|
||||
extern int acpi_blacklisted(void);
|
||||
extern void acpi_dmi_osi_linux(int enable, const struct dmi_system_id *d);
|
||||
extern int acpi_osi_setup(char *str);
|
||||
extern void acpi_osi_setup(char *str);
|
||||
|
||||
#ifdef CONFIG_ACPI_NUMA
|
||||
int acpi_get_pxm(acpi_handle handle);
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#ifndef _LINUX_VIDEO_OUTPUT_H
|
||||
#define _LINUX_VIDEO_OUTPUT_H
|
||||
#include <linux/device.h>
|
||||
#include <linux/err.h>
|
||||
struct output_device;
|
||||
struct output_properties {
|
||||
int (*set_state)(struct output_device *);
|
||||
@@ -34,9 +35,23 @@ struct output_device {
|
||||
struct device dev;
|
||||
};
|
||||
#define to_output_device(obj) container_of(obj, struct output_device, dev)
|
||||
#if defined(CONFIG_VIDEO_OUTPUT_CONTROL) || defined(CONFIG_VIDEO_OUTPUT_CONTROL_MODULE)
|
||||
struct output_device *video_output_register(const char *name,
|
||||
struct device *dev,
|
||||
void *devdata,
|
||||
struct output_properties *op);
|
||||
void video_output_unregister(struct output_device *dev);
|
||||
#else
|
||||
static struct output_device *video_output_register(const char *name,
|
||||
struct device *dev,
|
||||
void *devdata,
|
||||
struct output_properties *op)
|
||||
{
|
||||
return ERR_PTR(-ENODEV);
|
||||
}
|
||||
static void video_output_unregister(struct output_device *dev)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user