Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfcba200 authored by Richard Purdie's avatar Richard Purdie
Browse files

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1353,7 +1353,6 @@ static int asus_hotk_remove(struct acpi_device *device, int type)
}

static struct backlight_properties asus_backlight_data = {
        .owner          = THIS_MODULE,
        .get_brightness = read_brightness,
        .update_status  = set_brightness_status,
        .max_brightness = 15,
+0 −1
Original line number Diff line number Diff line
@@ -1705,7 +1705,6 @@ static int brightness_update_status(struct backlight_device *bd)
}

static struct backlight_properties ibm_backlight_data = {
        .owner          = THIS_MODULE,
        .get_brightness = brightness_get,
        .update_status  = brightness_update_status,
        .max_brightness = 7,
+0 −1
Original line number Diff line number Diff line
@@ -534,7 +534,6 @@ static acpi_status __exit remove_device(void)
}

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,
+0 −1
Original line number Diff line number Diff line
@@ -621,7 +621,6 @@ static void acpi_video_device_find_cap(struct acpi_video_device *device)
			kfree(name);
			return;
		}
		acpi_video_data->owner = THIS_MODULE;
		acpi_video_data->get_brightness =
			acpi_video_get_brightness;
		acpi_video_data->update_status =
+0 −1
Original line number Diff line number Diff line
@@ -111,7 +111,6 @@ static int pmu_backlight_get_brightness(struct backlight_device *bd)
}

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),
Loading