aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-02-07 19:06:32 -0500
committerRichard Purdie <rpurdie@rpsys.net>2007-02-20 03:37:40 -0500
commitdfcba200679dc3f62212154b65b40b835ce69ab7 (patch)
tree59aef9bbcf713b4e515e2df75c5d1ead2711e80f
parent2fd5a15489dd2e58009ffd4ecbadb36a40f67d2b (diff)
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: Richard Purdie <rpurdie@rpsys.net>
-rw-r--r--drivers/acpi/asus_acpi.c1
-rw-r--r--drivers/acpi/ibm_acpi.c1
-rw-r--r--drivers/acpi/toshiba_acpi.c1
-rw-r--r--drivers/acpi/video.c1
-rw-r--r--drivers/macintosh/via-pmu-backlight.c1
-rw-r--r--drivers/misc/asus-laptop.c1
-rw-r--r--drivers/misc/msi-laptop.c1
-rw-r--r--drivers/misc/sony-laptop.c1
-rw-r--r--drivers/usb/misc/appledisplay.c1
-rw-r--r--drivers/video/aty/aty128fb.c1
-rw-r--r--drivers/video/aty/atyfb_base.c1
-rw-r--r--drivers/video/aty/radeon_backlight.c1
-rw-r--r--drivers/video/backlight/corgi_bl.c1
-rw-r--r--drivers/video/backlight/hp680_bl.c1
-rw-r--r--drivers/video/backlight/locomolcd.c1
-rw-r--r--drivers/video/backlight/progear_bl.c1
-rw-r--r--drivers/video/nvidia/nv_backlight.c1
-rw-r--r--drivers/video/riva/fbdev.c1
-rw-r--r--include/linux/backlight.h3
-rw-r--r--include/linux/lcd.h2
20 files changed, 0 insertions, 23 deletions
diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c
index 772299fb5f9d..906c54f9ba50 100644
--- a/drivers/acpi/asus_acpi.c
+++ b/drivers/acpi/asus_acpi.c
@@ -1353,7 +1353,6 @@ static int asus_hotk_remove(struct acpi_device *device, int type)
1353} 1353}
1354 1354
1355static struct backlight_properties asus_backlight_data = { 1355static struct backlight_properties asus_backlight_data = {
1356 .owner = THIS_MODULE,
1357 .get_brightness = read_brightness, 1356 .get_brightness = read_brightness,
1358 .update_status = set_brightness_status, 1357 .update_status = set_brightness_status,
1359 .max_brightness = 15, 1358 .max_brightness = 15,
diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c
index 1a0ed3dc409c..accf4f7da889 100644
--- a/drivers/acpi/ibm_acpi.c
+++ b/drivers/acpi/ibm_acpi.c
@@ -1705,7 +1705,6 @@ static int brightness_update_status(struct backlight_device *bd)
1705} 1705}
1706 1706
1707static struct backlight_properties ibm_backlight_data = { 1707static struct backlight_properties ibm_backlight_data = {
1708 .owner = THIS_MODULE,
1709 .get_brightness = brightness_get, 1708 .get_brightness = brightness_get,
1710 .update_status = brightness_update_status, 1709 .update_status = brightness_update_status,
1711 .max_brightness = 7, 1710 .max_brightness = 7,
diff --git a/drivers/acpi/toshiba_acpi.c b/drivers/acpi/toshiba_acpi.c
index faf8a5232d8e..efc3669a84e8 100644
--- a/drivers/acpi/toshiba_acpi.c
+++ b/drivers/acpi/toshiba_acpi.c
@@ -534,7 +534,6 @@ static acpi_status __exit remove_device(void)
534} 534}
535 535
536static struct backlight_properties toshiba_backlight_data = { 536static struct backlight_properties toshiba_backlight_data = {
537 .owner = THIS_MODULE,
538 .get_brightness = get_lcd, 537 .get_brightness = get_lcd,
539 .update_status = set_lcd_status, 538 .update_status = set_lcd_status,
540 .max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1, 539 .max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1,
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index bf525cca3b63..75e422bd926a 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -621,7 +621,6 @@ static void acpi_video_device_find_cap(struct acpi_video_device *device)
621 kfree(name); 621 kfree(name);
622 return; 622 return;
623 } 623 }
624 acpi_video_data->owner = THIS_MODULE;
625 acpi_video_data->get_brightness = 624 acpi_video_data->get_brightness =
626 acpi_video_get_brightness; 625 acpi_video_get_brightness;
627 acpi_video_data->update_status = 626 acpi_video_data->update_status =
diff --git a/drivers/macintosh/via-pmu-backlight.c b/drivers/macintosh/via-pmu-backlight.c
index 801a974342f9..db8bcc35bc03 100644
--- a/drivers/macintosh/via-pmu-backlight.c
+++ b/drivers/macintosh/via-pmu-backlight.c
@@ -111,7 +111,6 @@ static int pmu_backlight_get_brightness(struct backlight_device *bd)
111} 111}
112 112
113static struct backlight_properties pmu_backlight_data = { 113static struct backlight_properties pmu_backlight_data = {
114 .owner = THIS_MODULE,
115 .get_brightness = pmu_backlight_get_brightness, 114 .get_brightness = pmu_backlight_get_brightness,
116 .update_status = pmu_backlight_update_status, 115 .update_status = pmu_backlight_update_status,
117 .max_brightness = (FB_BACKLIGHT_LEVELS - 1), 116 .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c
index e4e2b707a353..d15ee5e34201 100644
--- a/drivers/misc/asus-laptop.c
+++ b/drivers/misc/asus-laptop.c
@@ -196,7 +196,6 @@ static struct backlight_device *asus_backlight_device;
196static int read_brightness(struct backlight_device *bd); 196static int read_brightness(struct backlight_device *bd);
197static int update_bl_status(struct backlight_device *bd); 197static int update_bl_status(struct backlight_device *bd);
198static struct backlight_properties asusbl_data = { 198static struct backlight_properties asusbl_data = {
199 .owner = THIS_MODULE,
200 .get_brightness = read_brightness, 199 .get_brightness = read_brightness,
201 .update_status = update_bl_status, 200 .update_status = update_bl_status,
202 .max_brightness = 15, 201 .max_brightness = 15,
diff --git a/drivers/misc/msi-laptop.c b/drivers/misc/msi-laptop.c
index 8e5e07e4c1cf..dd4d92e031b7 100644
--- a/drivers/misc/msi-laptop.c
+++ b/drivers/misc/msi-laptop.c
@@ -161,7 +161,6 @@ static int bl_update_status(struct backlight_device *b)
161} 161}
162 162
163static struct backlight_properties msibl_props = { 163static struct backlight_properties msibl_props = {
164 .owner = THIS_MODULE,
165 .get_brightness = bl_get_brightness, 164 .get_brightness = bl_get_brightness,
166 .update_status = bl_update_status, 165 .update_status = bl_update_status,
167 .max_brightness = MSI_LCD_LEVEL_MAX-1, 166 .max_brightness = MSI_LCD_LEVEL_MAX-1,
diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c
index cabbed0015e4..03d02bd9f122 100644
--- a/drivers/misc/sony-laptop.c
+++ b/drivers/misc/sony-laptop.c
@@ -399,7 +399,6 @@ static int sony_backlight_get_brightness(struct backlight_device *bd)
399 399
400static struct backlight_device *sony_backlight_device; 400static struct backlight_device *sony_backlight_device;
401static struct backlight_properties sony_backlight_properties = { 401static struct backlight_properties sony_backlight_properties = {
402 .owner = THIS_MODULE,
403 .update_status = sony_backlight_update_status, 402 .update_status = sony_backlight_update_status,
404 .get_brightness = sony_backlight_get_brightness, 403 .get_brightness = sony_backlight_get_brightness,
405 .max_brightness = SONY_MAX_BRIGHTNESS - 1, 404 .max_brightness = SONY_MAX_BRIGHTNESS - 1,
diff --git a/drivers/usb/misc/appledisplay.c b/drivers/usb/misc/appledisplay.c
index e573c8ba9785..416cde5893af 100644
--- a/drivers/usb/misc/appledisplay.c
+++ b/drivers/usb/misc/appledisplay.c
@@ -178,7 +178,6 @@ static int appledisplay_bl_get_brightness(struct backlight_device *bd)
178} 178}
179 179
180static struct backlight_properties appledisplay_bl_data = { 180static struct backlight_properties appledisplay_bl_data = {
181 .owner = THIS_MODULE,
182 .get_brightness = appledisplay_bl_get_brightness, 181 .get_brightness = appledisplay_bl_get_brightness,
183 .update_status = appledisplay_bl_update_status, 182 .update_status = appledisplay_bl_update_status,
184 .max_brightness = 0xFF 183 .max_brightness = 0xFF
diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c
index 2e976ffcde0f..1fa211c0d7bb 100644
--- a/drivers/video/aty/aty128fb.c
+++ b/drivers/video/aty/aty128fb.c
@@ -1797,7 +1797,6 @@ static int aty128_bl_get_brightness(struct backlight_device *bd)
1797} 1797}
1798 1798
1799static struct backlight_properties aty128_bl_data = { 1799static struct backlight_properties aty128_bl_data = {
1800 .owner = THIS_MODULE,
1801 .get_brightness = aty128_bl_get_brightness, 1800 .get_brightness = aty128_bl_get_brightness,
1802 .update_status = aty128_bl_update_status, 1801 .update_status = aty128_bl_update_status,
1803 .max_brightness = (FB_BACKLIGHT_LEVELS - 1), 1802 .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
index 301612cef354..5ea5a00e58a3 100644
--- a/drivers/video/aty/atyfb_base.c
+++ b/drivers/video/aty/atyfb_base.c
@@ -2178,7 +2178,6 @@ static int aty_bl_get_brightness(struct backlight_device *bd)
2178} 2178}
2179 2179
2180static struct backlight_properties aty_bl_data = { 2180static struct backlight_properties aty_bl_data = {
2181 .owner = THIS_MODULE,
2182 .get_brightness = aty_bl_get_brightness, 2181 .get_brightness = aty_bl_get_brightness,
2183 .update_status = aty_bl_update_status, 2182 .update_status = aty_bl_update_status,
2184 .max_brightness = (FB_BACKLIGHT_LEVELS - 1), 2183 .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
diff --git a/drivers/video/aty/radeon_backlight.c b/drivers/video/aty/radeon_backlight.c
index 3abfd4a380cc..8b66df6f199a 100644
--- a/drivers/video/aty/radeon_backlight.c
+++ b/drivers/video/aty/radeon_backlight.c
@@ -134,7 +134,6 @@ static int radeon_bl_get_brightness(struct backlight_device *bd)
134} 134}
135 135
136static struct backlight_properties radeon_bl_data = { 136static struct backlight_properties radeon_bl_data = {
137 .owner = THIS_MODULE,
138 .get_brightness = radeon_bl_get_brightness, 137 .get_brightness = radeon_bl_get_brightness,
139 .update_status = radeon_bl_update_status, 138 .update_status = radeon_bl_update_status,
140 .max_brightness = (FB_BACKLIGHT_LEVELS - 1), 139 .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
diff --git a/drivers/video/backlight/corgi_bl.c b/drivers/video/backlight/corgi_bl.c
index fde1d9518123..4ca24e261578 100644
--- a/drivers/video/backlight/corgi_bl.c
+++ b/drivers/video/backlight/corgi_bl.c
@@ -106,7 +106,6 @@ EXPORT_SYMBOL(corgibl_limit_intensity);
106 106
107 107
108static struct backlight_properties corgibl_data = { 108static struct backlight_properties corgibl_data = {
109 .owner = THIS_MODULE,
110 .get_brightness = corgibl_get_intensity, 109 .get_brightness = corgibl_get_intensity,
111 .update_status = corgibl_set_intensity, 110 .update_status = corgibl_set_intensity,
112}; 111};
diff --git a/drivers/video/backlight/hp680_bl.c b/drivers/video/backlight/hp680_bl.c
index c07d8207fb54..074625a46e3d 100644
--- a/drivers/video/backlight/hp680_bl.c
+++ b/drivers/video/backlight/hp680_bl.c
@@ -96,7 +96,6 @@ static int hp680bl_get_intensity(struct backlight_device *bd)
96} 96}
97 97
98static struct backlight_properties hp680bl_data = { 98static struct backlight_properties hp680bl_data = {
99 .owner = THIS_MODULE,
100 .max_brightness = HP680_MAX_INTENSITY, 99 .max_brightness = HP680_MAX_INTENSITY,
101 .get_brightness = hp680bl_get_intensity, 100 .get_brightness = hp680bl_get_intensity,
102 .update_status = hp680bl_set_intensity, 101 .update_status = hp680bl_set_intensity,
diff --git a/drivers/video/backlight/locomolcd.c b/drivers/video/backlight/locomolcd.c
index fc812d96c31d..3c5abbf0d042 100644
--- a/drivers/video/backlight/locomolcd.c
+++ b/drivers/video/backlight/locomolcd.c
@@ -142,7 +142,6 @@ static int locomolcd_get_intensity(struct backlight_device *bd)
142} 142}
143 143
144static struct backlight_properties locomobl_data = { 144static struct backlight_properties locomobl_data = {
145 .owner = THIS_MODULE,
146 .get_brightness = locomolcd_get_intensity, 145 .get_brightness = locomolcd_get_intensity,
147 .update_status = locomolcd_set_intensity, 146 .update_status = locomolcd_set_intensity,
148 .max_brightness = 4, 147 .max_brightness = 4,
diff --git a/drivers/video/backlight/progear_bl.c b/drivers/video/backlight/progear_bl.c
index 13d831da8d96..42d6acd96c1a 100644
--- a/drivers/video/backlight/progear_bl.c
+++ b/drivers/video/backlight/progear_bl.c
@@ -56,7 +56,6 @@ static int progearbl_get_intensity(struct backlight_device *bd)
56} 56}
57 57
58static struct backlight_properties progearbl_data = { 58static struct backlight_properties progearbl_data = {
59 .owner = THIS_MODULE,
60 .get_brightness = progearbl_get_intensity, 59 .get_brightness = progearbl_get_intensity,
61 .update_status = progearbl_set_intensity, 60 .update_status = progearbl_set_intensity,
62}; 61};
diff --git a/drivers/video/nvidia/nv_backlight.c b/drivers/video/nvidia/nv_backlight.c
index df934bd21899..4254c090dc4b 100644
--- a/drivers/video/nvidia/nv_backlight.c
+++ b/drivers/video/nvidia/nv_backlight.c
@@ -104,7 +104,6 @@ static int nvidia_bl_get_brightness(struct backlight_device *bd)
104} 104}
105 105
106static struct backlight_properties nvidia_bl_data = { 106static struct backlight_properties nvidia_bl_data = {
107 .owner = THIS_MODULE,
108 .get_brightness = nvidia_bl_get_brightness, 107 .get_brightness = nvidia_bl_get_brightness,
109 .update_status = nvidia_bl_update_status, 108 .update_status = nvidia_bl_update_status,
110 .max_brightness = (FB_BACKLIGHT_LEVELS - 1), 109 .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c
index f2e9b742c92f..fd825711bb63 100644
--- a/drivers/video/riva/fbdev.c
+++ b/drivers/video/riva/fbdev.c
@@ -347,7 +347,6 @@ static int riva_bl_get_brightness(struct backlight_device *bd)
347} 347}
348 348
349static struct backlight_properties riva_bl_data = { 349static struct backlight_properties riva_bl_data = {
350 .owner = THIS_MODULE,
351 .get_brightness = riva_bl_get_brightness, 350 .get_brightness = riva_bl_get_brightness,
352 .update_status = riva_bl_update_status, 351 .update_status = riva_bl_update_status,
353 .max_brightness = (FB_BACKLIGHT_LEVELS - 1), 352 .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
diff --git a/include/linux/backlight.h b/include/linux/backlight.h
index a5cf1beacb44..287c62d956f2 100644
--- a/include/linux/backlight.h
+++ b/include/linux/backlight.h
@@ -17,9 +17,6 @@ struct fb_info;
17/* This structure defines all the properties of a backlight 17/* This structure defines all the properties of a backlight
18 (usually attached to a LCD). */ 18 (usually attached to a LCD). */
19struct backlight_properties { 19struct backlight_properties {
20 /* Owner module */
21 struct module *owner;
22
23 /* Notify the backlight driver some property has changed */ 20 /* Notify the backlight driver some property has changed */
24 int (*update_status)(struct backlight_device *); 21 int (*update_status)(struct backlight_device *);
25 /* Return the current backlight brightness (accounting for power, 22 /* Return the current backlight brightness (accounting for power,
diff --git a/include/linux/lcd.h b/include/linux/lcd.h
index d739b2e7eac2..8a468f168c45 100644
--- a/include/linux/lcd.h
+++ b/include/linux/lcd.h
@@ -16,8 +16,6 @@ struct fb_info;
16 16
17/* This structure defines all the properties of a LCD flat panel. */ 17/* This structure defines all the properties of a LCD flat panel. */
18struct lcd_properties { 18struct lcd_properties {
19 /* Owner module */
20 struct module *owner;
21 /* Get the LCD panel power status (0: full on, 1..3: controller 19 /* Get the LCD panel power status (0: full on, 1..3: controller
22 power on, flat panel power off, 4: full off), see FB_BLANK_XXX */ 20 power on, flat panel power off, 4: full off), see FB_BLANK_XXX */
23 int (*get_power)(struct lcd_device *); 21 int (*get_power)(struct lcd_device *);