Commit dfcba200 authored by Richard Purdie's avatar Richard Purdie

backlight: Remove unneeded owner field

Remove uneeded owner field from backlight_properties structure.

Nothing uses it and it is unlikely that it will ever be used. The
backlight class uses other means to ensure that nothing references
unloaded code.

Based on a patch from Dmitry Torokhov <dtor@insightbb.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@rpsys.net>
parent 2fd5a154
...@@ -1353,7 +1353,6 @@ static int asus_hotk_remove(struct acpi_device *device, int type) ...@@ -1353,7 +1353,6 @@ static int asus_hotk_remove(struct acpi_device *device, int type)
} }
static struct backlight_properties asus_backlight_data = { static struct backlight_properties asus_backlight_data = {
.owner = THIS_MODULE,
.get_brightness = read_brightness, .get_brightness = read_brightness,
.update_status = set_brightness_status, .update_status = set_brightness_status,
.max_brightness = 15, .max_brightness = 15,
......
...@@ -1705,7 +1705,6 @@ static int brightness_update_status(struct backlight_device *bd) ...@@ -1705,7 +1705,6 @@ static int brightness_update_status(struct backlight_device *bd)
} }
static struct backlight_properties ibm_backlight_data = { static struct backlight_properties ibm_backlight_data = {
.owner = THIS_MODULE,
.get_brightness = brightness_get, .get_brightness = brightness_get,
.update_status = brightness_update_status, .update_status = brightness_update_status,
.max_brightness = 7, .max_brightness = 7,
......
...@@ -534,7 +534,6 @@ static acpi_status __exit remove_device(void) ...@@ -534,7 +534,6 @@ static acpi_status __exit remove_device(void)
} }
static struct backlight_properties toshiba_backlight_data = { static struct backlight_properties toshiba_backlight_data = {
.owner = THIS_MODULE,
.get_brightness = get_lcd, .get_brightness = get_lcd,
.update_status = set_lcd_status, .update_status = set_lcd_status,
.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1, .max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1,
......
...@@ -621,7 +621,6 @@ static void acpi_video_device_find_cap(struct acpi_video_device *device) ...@@ -621,7 +621,6 @@ static void acpi_video_device_find_cap(struct acpi_video_device *device)
kfree(name); kfree(name);
return; return;
} }
acpi_video_data->owner = THIS_MODULE;
acpi_video_data->get_brightness = acpi_video_data->get_brightness =
acpi_video_get_brightness; acpi_video_get_brightness;
acpi_video_data->update_status = acpi_video_data->update_status =
......
...@@ -111,7 +111,6 @@ static int pmu_backlight_get_brightness(struct backlight_device *bd) ...@@ -111,7 +111,6 @@ static int pmu_backlight_get_brightness(struct backlight_device *bd)
} }
static struct backlight_properties pmu_backlight_data = { static struct backlight_properties pmu_backlight_data = {
.owner = THIS_MODULE,
.get_brightness = pmu_backlight_get_brightness, .get_brightness = pmu_backlight_get_brightness,
.update_status = pmu_backlight_update_status, .update_status = pmu_backlight_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1), .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
......
...@@ -196,7 +196,6 @@ static struct backlight_device *asus_backlight_device; ...@@ -196,7 +196,6 @@ static struct backlight_device *asus_backlight_device;
static int read_brightness(struct backlight_device *bd); static int read_brightness(struct backlight_device *bd);
static int update_bl_status(struct backlight_device *bd); static int update_bl_status(struct backlight_device *bd);
static struct backlight_properties asusbl_data = { static struct backlight_properties asusbl_data = {
.owner = THIS_MODULE,
.get_brightness = read_brightness, .get_brightness = read_brightness,
.update_status = update_bl_status, .update_status = update_bl_status,
.max_brightness = 15, .max_brightness = 15,
......
...@@ -161,7 +161,6 @@ static int bl_update_status(struct backlight_device *b) ...@@ -161,7 +161,6 @@ static int bl_update_status(struct backlight_device *b)
} }
static struct backlight_properties msibl_props = { static struct backlight_properties msibl_props = {
.owner = THIS_MODULE,
.get_brightness = bl_get_brightness, .get_brightness = bl_get_brightness,
.update_status = bl_update_status, .update_status = bl_update_status,
.max_brightness = MSI_LCD_LEVEL_MAX-1, .max_brightness = MSI_LCD_LEVEL_MAX-1,
......
...@@ -399,7 +399,6 @@ static int sony_backlight_get_brightness(struct backlight_device *bd) ...@@ -399,7 +399,6 @@ static int sony_backlight_get_brightness(struct backlight_device *bd)
static struct backlight_device *sony_backlight_device; static struct backlight_device *sony_backlight_device;
static struct backlight_properties sony_backlight_properties = { static struct backlight_properties sony_backlight_properties = {
.owner = THIS_MODULE,
.update_status = sony_backlight_update_status, .update_status = sony_backlight_update_status,
.get_brightness = sony_backlight_get_brightness, .get_brightness = sony_backlight_get_brightness,
.max_brightness = SONY_MAX_BRIGHTNESS - 1, .max_brightness = SONY_MAX_BRIGHTNESS - 1,
......
...@@ -178,7 +178,6 @@ static int appledisplay_bl_get_brightness(struct backlight_device *bd) ...@@ -178,7 +178,6 @@ static int appledisplay_bl_get_brightness(struct backlight_device *bd)
} }
static struct backlight_properties appledisplay_bl_data = { static struct backlight_properties appledisplay_bl_data = {
.owner = THIS_MODULE,
.get_brightness = appledisplay_bl_get_brightness, .get_brightness = appledisplay_bl_get_brightness,
.update_status = appledisplay_bl_update_status, .update_status = appledisplay_bl_update_status,
.max_brightness = 0xFF .max_brightness = 0xFF
......
...@@ -1797,7 +1797,6 @@ static int aty128_bl_get_brightness(struct backlight_device *bd) ...@@ -1797,7 +1797,6 @@ static int aty128_bl_get_brightness(struct backlight_device *bd)
} }
static struct backlight_properties aty128_bl_data = { static struct backlight_properties aty128_bl_data = {
.owner = THIS_MODULE,
.get_brightness = aty128_bl_get_brightness, .get_brightness = aty128_bl_get_brightness,
.update_status = aty128_bl_update_status, .update_status = aty128_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1), .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
......
...@@ -2178,7 +2178,6 @@ static int aty_bl_get_brightness(struct backlight_device *bd) ...@@ -2178,7 +2178,6 @@ static int aty_bl_get_brightness(struct backlight_device *bd)
} }
static struct backlight_properties aty_bl_data = { static struct backlight_properties aty_bl_data = {
.owner = THIS_MODULE,
.get_brightness = aty_bl_get_brightness, .get_brightness = aty_bl_get_brightness,
.update_status = aty_bl_update_status, .update_status = aty_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1), .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
......
...@@ -134,7 +134,6 @@ static int radeon_bl_get_brightness(struct backlight_device *bd) ...@@ -134,7 +134,6 @@ static int radeon_bl_get_brightness(struct backlight_device *bd)
} }
static struct backlight_properties radeon_bl_data = { static struct backlight_properties radeon_bl_data = {
.owner = THIS_MODULE,
.get_brightness = radeon_bl_get_brightness, .get_brightness = radeon_bl_get_brightness,
.update_status = radeon_bl_update_status, .update_status = radeon_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1), .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
......
...@@ -106,7 +106,6 @@ EXPORT_SYMBOL(corgibl_limit_intensity); ...@@ -106,7 +106,6 @@ EXPORT_SYMBOL(corgibl_limit_intensity);
static struct backlight_properties corgibl_data = { static struct backlight_properties corgibl_data = {
.owner = THIS_MODULE,
.get_brightness = corgibl_get_intensity, .get_brightness = corgibl_get_intensity,
.update_status = corgibl_set_intensity, .update_status = corgibl_set_intensity,
}; };
......
...@@ -96,7 +96,6 @@ static int hp680bl_get_intensity(struct backlight_device *bd) ...@@ -96,7 +96,6 @@ static int hp680bl_get_intensity(struct backlight_device *bd)
} }
static struct backlight_properties hp680bl_data = { static struct backlight_properties hp680bl_data = {
.owner = THIS_MODULE,
.max_brightness = HP680_MAX_INTENSITY, .max_brightness = HP680_MAX_INTENSITY,
.get_brightness = hp680bl_get_intensity, .get_brightness = hp680bl_get_intensity,
.update_status = hp680bl_set_intensity, .update_status = hp680bl_set_intensity,
......
...@@ -142,7 +142,6 @@ static int locomolcd_get_intensity(struct backlight_device *bd) ...@@ -142,7 +142,6 @@ static int locomolcd_get_intensity(struct backlight_device *bd)
} }
static struct backlight_properties locomobl_data = { static struct backlight_properties locomobl_data = {
.owner = THIS_MODULE,
.get_brightness = locomolcd_get_intensity, .get_brightness = locomolcd_get_intensity,
.update_status = locomolcd_set_intensity, .update_status = locomolcd_set_intensity,
.max_brightness = 4, .max_brightness = 4,
......
...@@ -56,7 +56,6 @@ static int progearbl_get_intensity(struct backlight_device *bd) ...@@ -56,7 +56,6 @@ static int progearbl_get_intensity(struct backlight_device *bd)
} }
static struct backlight_properties progearbl_data = { static struct backlight_properties progearbl_data = {
.owner = THIS_MODULE,
.get_brightness = progearbl_get_intensity, .get_brightness = progearbl_get_intensity,
.update_status = progearbl_set_intensity, .update_status = progearbl_set_intensity,
}; };
......
...@@ -104,7 +104,6 @@ static int nvidia_bl_get_brightness(struct backlight_device *bd) ...@@ -104,7 +104,6 @@ static int nvidia_bl_get_brightness(struct backlight_device *bd)
} }
static struct backlight_properties nvidia_bl_data = { static struct backlight_properties nvidia_bl_data = {
.owner = THIS_MODULE,
.get_brightness = nvidia_bl_get_brightness, .get_brightness = nvidia_bl_get_brightness,
.update_status = nvidia_bl_update_status, .update_status = nvidia_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1), .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
......
...@@ -347,7 +347,6 @@ static int riva_bl_get_brightness(struct backlight_device *bd) ...@@ -347,7 +347,6 @@ static int riva_bl_get_brightness(struct backlight_device *bd)
} }
static struct backlight_properties riva_bl_data = { static struct backlight_properties riva_bl_data = {
.owner = THIS_MODULE,
.get_brightness = riva_bl_get_brightness, .get_brightness = riva_bl_get_brightness,
.update_status = riva_bl_update_status, .update_status = riva_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1), .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
......
...@@ -17,9 +17,6 @@ struct fb_info; ...@@ -17,9 +17,6 @@ struct fb_info;
/* This structure defines all the properties of a backlight /* This structure defines all the properties of a backlight
(usually attached to a LCD). */ (usually attached to a LCD). */
struct backlight_properties { struct backlight_properties {
/* Owner module */
struct module *owner;
/* Notify the backlight driver some property has changed */ /* Notify the backlight driver some property has changed */
int (*update_status)(struct backlight_device *); int (*update_status)(struct backlight_device *);
/* Return the current backlight brightness (accounting for power, /* Return the current backlight brightness (accounting for power,
......
...@@ -16,8 +16,6 @@ struct fb_info; ...@@ -16,8 +16,6 @@ struct fb_info;
/* This structure defines all the properties of a LCD flat panel. */ /* This structure defines all the properties of a LCD flat panel. */
struct lcd_properties { struct lcd_properties {
/* Owner module */
struct module *owner;
/* Get the LCD panel power status (0: full on, 1..3: controller /* Get the LCD panel power status (0: full on, 1..3: controller
power on, flat panel power off, 4: full off), see FB_BLANK_XXX */ power on, flat panel power off, 4: full off), see FB_BLANK_XXX */
int (*get_power)(struct lcd_device *); int (*get_power)(struct lcd_device *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment