summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@web.de>2009-08-06 18:08:18 +0200
committerDanny Kukawka <danny.kukawka@web.de>2009-08-06 18:08:18 +0200
commit6947c6cceaf3c7787aaf109e6c9ec913dac97f77 (patch)
treecdd191e23304276b71a18b699af11e78f10bb15f
parent6a24907092f0ab835a4f4a1737e56ceb4ebe741a (diff)
always set leds.num_levels since it's mandatory
Always set leds.num_levels since it's mandatory.
-rw-r--r--hald/linux/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hald/linux/device.c b/hald/linux/device.c
index 5cd0437f..3bd13831 100644
--- a/hald/linux/device.c
+++ b/hald/linux/device.c
@@ -1396,10 +1396,10 @@ leds_add (const gchar *sysfs_path, const gchar *device_file, HalDevice *parent_d
if (function != NULL && strcmp (function, "kbd_backlight")) {
hal_device_property_set_int (d, "keyboard_backlight.num_levels", max_brightness + 1);
hal_device_add_capability (d, "keyboard_backlight");
- } else {
- hal_device_property_set_int (d, "leds.num_levels", max_brightness + 1);
}
+ hal_device_property_set_int (d, "leds.num_levels", max_brightness + 1);
+
g_free (function);
return d;
}