From 03afc6909ac94ba26fa7b1edb4d47b37edc70b5c Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 31 Jan 2011 23:06:44 +0100 Subject: [PATCH] compat-wireless: remove max_brightness Signed-off-by: Hauke Mehrtens --- patches/37-led-max-brightness.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patches/37-led-max-brightness.patch diff --git a/patches/37-led-max-brightness.patch b/patches/37-led-max-brightness.patch new file mode 100644 index 000000000000..ef684b54bb43 --- /dev/null +++ b/patches/37-led-max-brightness.patch @@ -0,0 +1,12 @@ +--- a/drivers/net/wireless/iwlwifi/iwl-led.c ++++ b/drivers/net/wireless/iwlwifi/iwl-led.c +@@ -149,7 +149,9 @@ void iwl_leds_init(struct iwl_priv *priv + wiphy_name(priv->hw->wiphy)); + priv->led.brightness_set = iwl_led_brightness_set; + priv->led.blink_set = iwl_led_blink_set; ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) + priv->led.max_brightness = 1; ++#endif + + switch (mode) { + case IWL_LED_DEFAULT: -- 2.30.2