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: Richard Purdie <rpurdie@rpsys.net>
}
static struct backlight_properties asus_backlight_data = {
- .owner = THIS_MODULE,
.get_brightness = read_brightness,
.update_status = set_brightness_status,
.max_brightness = 15,
}
static struct backlight_properties ibm_backlight_data = {
- .owner = THIS_MODULE,
.get_brightness = brightness_get,
.update_status = brightness_update_status,
.max_brightness = 7,
}
static struct backlight_properties toshiba_backlight_data = {
- .owner = THIS_MODULE,
.get_brightness = get_lcd,
.update_status = set_lcd_status,
.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1,
kfree(name);
return;
}
- acpi_video_data->owner = THIS_MODULE;
acpi_video_data->get_brightness =
acpi_video_get_brightness;
acpi_video_data->update_status =
}
static struct backlight_properties pmu_backlight_data = {
- .owner = THIS_MODULE,
.get_brightness = pmu_backlight_get_brightness,
.update_status = pmu_backlight_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1),
static int read_brightness(struct backlight_device *bd);
static int update_bl_status(struct backlight_device *bd);
static struct backlight_properties asusbl_data = {
- .owner = THIS_MODULE,
.get_brightness = read_brightness,
.update_status = update_bl_status,
.max_brightness = 15,
}
static struct backlight_properties msibl_props = {
- .owner = THIS_MODULE,
.get_brightness = bl_get_brightness,
.update_status = bl_update_status,
.max_brightness = MSI_LCD_LEVEL_MAX-1,
static struct backlight_device *sony_backlight_device;
static struct backlight_properties sony_backlight_properties = {
- .owner = THIS_MODULE,
.update_status = sony_backlight_update_status,
.get_brightness = sony_backlight_get_brightness,
.max_brightness = SONY_MAX_BRIGHTNESS - 1,
}
static struct backlight_properties appledisplay_bl_data = {
- .owner = THIS_MODULE,
.get_brightness = appledisplay_bl_get_brightness,
.update_status = appledisplay_bl_update_status,
.max_brightness = 0xFF
}
static struct backlight_properties aty128_bl_data = {
- .owner = THIS_MODULE,
.get_brightness = aty128_bl_get_brightness,
.update_status = aty128_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1),
}
static struct backlight_properties aty_bl_data = {
- .owner = THIS_MODULE,
.get_brightness = aty_bl_get_brightness,
.update_status = aty_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1),
}
static struct backlight_properties radeon_bl_data = {
- .owner = THIS_MODULE,
.get_brightness = radeon_bl_get_brightness,
.update_status = radeon_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1),
static struct backlight_properties corgibl_data = {
- .owner = THIS_MODULE,
.get_brightness = corgibl_get_intensity,
.update_status = corgibl_set_intensity,
};
}
static struct backlight_properties hp680bl_data = {
- .owner = THIS_MODULE,
.max_brightness = HP680_MAX_INTENSITY,
.get_brightness = hp680bl_get_intensity,
.update_status = hp680bl_set_intensity,
}
static struct backlight_properties locomobl_data = {
- .owner = THIS_MODULE,
.get_brightness = locomolcd_get_intensity,
.update_status = locomolcd_set_intensity,
.max_brightness = 4,
}
static struct backlight_properties progearbl_data = {
- .owner = THIS_MODULE,
.get_brightness = progearbl_get_intensity,
.update_status = progearbl_set_intensity,
};
}
static struct backlight_properties nvidia_bl_data = {
- .owner = THIS_MODULE,
.get_brightness = nvidia_bl_get_brightness,
.update_status = nvidia_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1),
}
static struct backlight_properties riva_bl_data = {
- .owner = THIS_MODULE,
.get_brightness = riva_bl_get_brightness,
.update_status = riva_bl_update_status,
.max_brightness = (FB_BACKLIGHT_LEVELS - 1),
/* This structure defines all the properties of a backlight
(usually attached to a LCD). */
struct backlight_properties {
- /* Owner module */
- struct module *owner;
-
/* Notify the backlight driver some property has changed */
int (*update_status)(struct backlight_device *);
/* Return the current backlight brightness (accounting for power,
/* This structure defines all the properties of a LCD flat panel. */
struct lcd_properties {
- /* Owner module */
- struct module *owner;
/* 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 */
int (*get_power)(struct lcd_device *);