ACPI / video: Make acpi_video_unregister_backlight() private
acpi_video_unregister_backlight() is now only used by video_detect.c which is part of the same acpi_video module as video.c, make acpi_video_unregister_backlight() private to this module. 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
d0a530ba42
commit
e7d024c00a
|
@ -2021,7 +2021,6 @@ void acpi_video_unregister_backlight(void)
|
||||||
}
|
}
|
||||||
mutex_unlock(®ister_count_mutex);
|
mutex_unlock(®ister_count_mutex);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(acpi_video_unregister_backlight);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is kind of nasty. Hardware using Intel chipsets may require
|
* This is kind of nasty. Hardware using Intel chipsets may require
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
ACPI_MODULE_NAME("video");
|
ACPI_MODULE_NAME("video");
|
||||||
#define _COMPONENT ACPI_VIDEO_COMPONENT
|
#define _COMPONENT ACPI_VIDEO_COMPONENT
|
||||||
|
|
||||||
|
void acpi_video_unregister_backlight(void);
|
||||||
|
|
||||||
static bool backlight_notifier_registered;
|
static bool backlight_notifier_registered;
|
||||||
static struct notifier_block backlight_nb;
|
static struct notifier_block backlight_nb;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,6 @@ enum acpi_backlight_type {
|
||||||
#if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)
|
#if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)
|
||||||
extern int acpi_video_register(void);
|
extern int acpi_video_register(void);
|
||||||
extern void acpi_video_unregister(void);
|
extern void acpi_video_unregister(void);
|
||||||
extern void acpi_video_unregister_backlight(void);
|
|
||||||
extern int acpi_video_get_edid(struct acpi_device *device, int type,
|
extern int acpi_video_get_edid(struct acpi_device *device, int type,
|
||||||
int device_id, void **edid);
|
int device_id, void **edid);
|
||||||
extern enum acpi_backlight_type acpi_video_get_backlight_type(void);
|
extern enum acpi_backlight_type acpi_video_get_backlight_type(void);
|
||||||
|
@ -35,7 +34,6 @@ extern void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type);
|
||||||
#else
|
#else
|
||||||
static inline int acpi_video_register(void) { return 0; }
|
static inline int acpi_video_register(void) { return 0; }
|
||||||
static inline void acpi_video_unregister(void) { return; }
|
static inline void acpi_video_unregister(void) { return; }
|
||||||
static inline void acpi_video_unregister_backlight(void) { return; }
|
|
||||||
static inline int acpi_video_get_edid(struct acpi_device *device, int type,
|
static inline int acpi_video_get_edid(struct acpi_device *device, int type,
|
||||||
int device_id, void **edid)
|
int device_id, void **edid)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue