]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
backlight: Remove unneeded owner field
authorRichard Purdie <rpurdie@rpsys.net>
Thu, 8 Feb 2007 00:06:32 +0000 (00:06 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Tue, 20 Feb 2007 08:37:40 +0000 (08:37 +0000)
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>
20 files changed:
drivers/acpi/asus_acpi.c
drivers/acpi/ibm_acpi.c
drivers/acpi/toshiba_acpi.c
drivers/acpi/video.c
drivers/macintosh/via-pmu-backlight.c
drivers/misc/asus-laptop.c
drivers/misc/msi-laptop.c
drivers/misc/sony-laptop.c
drivers/usb/misc/appledisplay.c
drivers/video/aty/aty128fb.c
drivers/video/aty/atyfb_base.c
drivers/video/aty/radeon_backlight.c
drivers/video/backlight/corgi_bl.c
drivers/video/backlight/hp680_bl.c
drivers/video/backlight/locomolcd.c
drivers/video/backlight/progear_bl.c
drivers/video/nvidia/nv_backlight.c
drivers/video/riva/fbdev.c
include/linux/backlight.h
include/linux/lcd.h

index 772299fb5f9d97e54078f549e8241a852bbf181b..906c54f9ba50e3c21b37fbee9dc6bad4f41d333c 100644 (file)
@@ -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,
index 1a0ed3dc409c8426d1e79f084a1ce0e38451bac7..accf4f7da889b56bb2beb61fd175f7d9a4e30687 100644 (file)
@@ -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,
index faf8a5232d8e5d94d285f7c92bc4b6856ace05bb..efc3669a84e8e5cae3a8bb0bd775693f7585ecf8 100644 (file)
@@ -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,
index bf525cca3b637160a3c1b28f95269ea108c1dfd3..75e422bd926ad78971f6d1f101d4a604258ee9f4 100644 (file)
@@ -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 =
index 801a974342f919bc6d2e515f7e58919351cf6c77..db8bcc35bc03f5bfe039dbc72966f21f0a65dadf 100644 (file)
@@ -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),
index e4e2b707a3531f0ae8371ac7f730ce27917f65ee..d15ee5e3420138481dd2a8e803eb86931ef2db13 100644 (file)
@@ -196,7 +196,6 @@ static struct backlight_device *asus_backlight_device;
 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,
index 8e5e07e4c1cf6b91219148ad82bf10f1469fe3e6..dd4d92e031b7902c5ea4e4c4485dfe738b4531cd 100644 (file)
@@ -161,7 +161,6 @@ static int bl_update_status(struct backlight_device *b)
 }
 
 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,
index cabbed0015e4eaef8369d11159afd3e44918bec1..03d02bd9f122e698ab34c5cc97ab09fcdd49a53c 100644 (file)
@@ -399,7 +399,6 @@ static int sony_backlight_get_brightness(struct backlight_device *bd)
 
 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,
index e573c8ba978545d164095dc634407daf4f859c2a..416cde5893af83585a94bb3b787f6fc6b56bc93b 100644 (file)
@@ -178,7 +178,6 @@ static int appledisplay_bl_get_brightness(struct backlight_device *bd)
 }
 
 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
index 2e976ffcde0fa53a3977da6e05ed1f61884f99c3..1fa211c0d7bba45efbb8e1e8660117ddaa73a5fd 100644 (file)
@@ -1797,7 +1797,6 @@ static int aty128_bl_get_brightness(struct backlight_device *bd)
 }
 
 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),
index 301612cef3544ca4f3bc2b367af620ba6f83b801..5ea5a00e58a339d82da1e32760debfebe377697c 100644 (file)
@@ -2178,7 +2178,6 @@ static int aty_bl_get_brightness(struct backlight_device *bd)
 }
 
 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),
index 3abfd4a380cc22c229520d3eaba7d728c0330001..8b66df6f199abd67a0927ed37c10be36c72a7850 100644 (file)
@@ -134,7 +134,6 @@ static int radeon_bl_get_brightness(struct backlight_device *bd)
 }
 
 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),
index fde1d9518123b6b04a024184a023537379a7324f..4ca24e261578b9ab47c4cbee5fdb1f71ea5f6fef 100644 (file)
@@ -106,7 +106,6 @@ EXPORT_SYMBOL(corgibl_limit_intensity);
 
 
 static struct backlight_properties corgibl_data = {
-       .owner          = THIS_MODULE,
        .get_brightness = corgibl_get_intensity,
        .update_status  = corgibl_set_intensity,
 };
index c07d8207fb549e1412b91a793f98e8b3d9719646..074625a46e3dd2d99a3093ea51af96a457f0c14f 100644 (file)
@@ -96,7 +96,6 @@ static int hp680bl_get_intensity(struct backlight_device *bd)
 }
 
 static struct backlight_properties hp680bl_data = {
-       .owner          = THIS_MODULE,
        .max_brightness = HP680_MAX_INTENSITY,
        .get_brightness = hp680bl_get_intensity,
        .update_status  = hp680bl_set_intensity,
index fc812d96c31dfc5fae102db6512afc9592b409da..3c5abbf0d042f4e768e0b27b6fbad7014880f06f 100644 (file)
@@ -142,7 +142,6 @@ static int locomolcd_get_intensity(struct backlight_device *bd)
 }
 
 static struct backlight_properties locomobl_data = {
-       .owner          = THIS_MODULE,
        .get_brightness = locomolcd_get_intensity,
        .update_status  = locomolcd_set_intensity,
        .max_brightness = 4,
index 13d831da8d9687c173218ed0322b177664c86ee1..42d6acd96c1a0fbee9c5a4501082e9e031d2bb66 100644 (file)
@@ -56,7 +56,6 @@ static int progearbl_get_intensity(struct backlight_device *bd)
 }
 
 static struct backlight_properties progearbl_data = {
-       .owner = THIS_MODULE,
        .get_brightness = progearbl_get_intensity,
        .update_status = progearbl_set_intensity,
 };
index df934bd218994882e9dda27457ef8575890e274d..4254c090dc4be2a090e6cd74a24b34425c43c3ba 100644 (file)
@@ -104,7 +104,6 @@ static int nvidia_bl_get_brightness(struct backlight_device *bd)
 }
 
 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),
index f2e9b742c92fe812471d72b3a607039268d51145..fd825711bb638ca104cbeea5dea42ce39bc77d2f 100644 (file)
@@ -347,7 +347,6 @@ static int riva_bl_get_brightness(struct backlight_device *bd)
 }
 
 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),
index a5cf1beacb443a18edbfcd1767e2866a24dc6299..287c62d956f2d80283c62586ca6a7786f3303c77 100644 (file)
@@ -17,9 +17,6 @@ struct fb_info;
 /* 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,
index d739b2e7eac26a64fa215909cd552345463493e2..8a468f168c451a4faa6abaa133e751a1db2a33b4 100644 (file)
@@ -16,8 +16,6 @@ struct fb_info;
 
 /* 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 *);