acpi-video-detect: Make acpi_video_get_capabilities a private function
acpi_video_get_capabilities() is only used inside video_detect.c so make it static. While at it also remove the prototype for the non existent acpi_video_display_switch_support function from acpi.h Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
7f3b62cf94
commit
fb105d9642
@ -184,7 +184,7 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
|
|||||||
* all graphics capabilities of physically present devices are
|
* all graphics capabilities of physically present devices are
|
||||||
* summarized and returned. This is cached and done only once.
|
* summarized and returned. This is cached and done only once.
|
||||||
*/
|
*/
|
||||||
long acpi_video_get_capabilities(acpi_handle graphics_handle)
|
static long acpi_video_get_capabilities(acpi_handle graphics_handle)
|
||||||
{
|
{
|
||||||
long caps = 0;
|
long caps = 0;
|
||||||
struct acpi_device *tmp_dev;
|
struct acpi_device *tmp_dev;
|
||||||
@ -227,7 +227,6 @@ long acpi_video_get_capabilities(acpi_handle graphics_handle)
|
|||||||
graphics_handle ? acpi_device_bid(tmp_dev) : ""));
|
graphics_handle ? acpi_device_bid(tmp_dev) : ""));
|
||||||
return caps;
|
return caps;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(acpi_video_get_capabilities);
|
|
||||||
|
|
||||||
static void acpi_video_caps_check(void)
|
static void acpi_video_caps_check(void)
|
||||||
{
|
{
|
||||||
|
@ -245,19 +245,12 @@ extern bool wmi_has_guid(const char *guid);
|
|||||||
|
|
||||||
#if defined(CONFIG_ACPI_VIDEO) || defined(CONFIG_ACPI_VIDEO_MODULE)
|
#if defined(CONFIG_ACPI_VIDEO) || defined(CONFIG_ACPI_VIDEO_MODULE)
|
||||||
|
|
||||||
extern long acpi_video_get_capabilities(acpi_handle graphics_dev_handle);
|
|
||||||
extern long acpi_is_video_device(acpi_handle handle);
|
extern long acpi_is_video_device(acpi_handle handle);
|
||||||
extern void acpi_video_dmi_promote_vendor(void);
|
extern void acpi_video_dmi_promote_vendor(void);
|
||||||
extern int acpi_video_backlight_support(void);
|
extern int acpi_video_backlight_support(void);
|
||||||
extern int acpi_video_display_switch_support(void);
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static inline long acpi_video_get_capabilities(acpi_handle graphics_dev_handle)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline long acpi_is_video_device(acpi_handle handle)
|
static inline long acpi_is_video_device(acpi_handle handle)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@ -272,11 +265,6 @@ static inline int acpi_video_backlight_support(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int acpi_video_display_switch_support(void)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* defined(CONFIG_ACPI_VIDEO) || defined(CONFIG_ACPI_VIDEO_MODULE) */
|
#endif /* defined(CONFIG_ACPI_VIDEO) || defined(CONFIG_ACPI_VIDEO_MODULE) */
|
||||||
|
|
||||||
extern int acpi_blacklisted(void);
|
extern int acpi_blacklisted(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user