diff options
author | Thomas Renninger <trenn@suse.de> | 2011-03-31 07:36:38 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-04-01 02:24:31 -0400 |
commit | 1cb7b1e0de6a1f8f071f4a146e3d10f3a662f707 (patch) | |
tree | 8a66774191480f2ba893c0b9391c66d60b6ba6d1 /drivers/platform/x86/msi-laptop.c | |
parent | 521cb40b0c44418a4fd36dc633f575813d59a43d (diff) |
ACPI EC: remove dead code
static void acpi_ec_gpe_query(void *ec_cxt);
-> The function is right above this declaration -> not needed.
poll_force is also not used, cleaned up in ec.c and its users:
compal-laptop and msi-laptop.
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform/x86/msi-laptop.c')
-rw-r--r-- | drivers/platform/x86/msi-laptop.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c index 7e9bb6df9d39..918a65dd2ab3 100644 --- a/drivers/platform/x86/msi-laptop.c +++ b/drivers/platform/x86/msi-laptop.c | |||
@@ -120,7 +120,7 @@ static int set_lcd_level(int level) | |||
120 | buf[1] = (u8) (level*31); | 120 | buf[1] = (u8) (level*31); |
121 | 121 | ||
122 | return ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, buf, sizeof(buf), | 122 | return ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, buf, sizeof(buf), |
123 | NULL, 0, 1); | 123 | NULL, 0); |
124 | } | 124 | } |
125 | 125 | ||
126 | static int get_lcd_level(void) | 126 | static int get_lcd_level(void) |
@@ -129,7 +129,7 @@ static int get_lcd_level(void) | |||
129 | int result; | 129 | int result; |
130 | 130 | ||
131 | result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, | 131 | result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, |
132 | &rdata, 1, 1); | 132 | &rdata, 1); |
133 | if (result < 0) | 133 | if (result < 0) |
134 | return result; | 134 | return result; |
135 | 135 | ||
@@ -142,7 +142,7 @@ static int get_auto_brightness(void) | |||
142 | int result; | 142 | int result; |
143 | 143 | ||
144 | result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, | 144 | result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, |
145 | &rdata, 1, 1); | 145 | &rdata, 1); |
146 | if (result < 0) | 146 | if (result < 0) |
147 | return result; | 147 | return result; |
148 | 148 | ||
@@ -157,7 +157,7 @@ static int set_auto_brightness(int enable) | |||
157 | wdata[0] = 4; | 157 | wdata[0] = 4; |
158 | 158 | ||
159 | result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, | 159 | result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, |
160 | &rdata, 1, 1); | 160 | &rdata, 1); |
161 | if (result < 0) | 161 | if (result < 0) |
162 | return result; | 162 | return result; |
163 | 163 | ||
@@ -165,7 +165,7 @@ static int set_auto_brightness(int enable) | |||
165 | wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); | 165 | wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); |
166 | 166 | ||
167 | return ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 2, | 167 | return ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 2, |
168 | NULL, 0, 1); | 168 | NULL, 0); |
169 | } | 169 | } |
170 | 170 | ||
171 | static ssize_t set_device_state(const char *buf, size_t count, u8 mask) | 171 | static ssize_t set_device_state(const char *buf, size_t count, u8 mask) |
@@ -202,7 +202,7 @@ static int get_wireless_state(int *wlan, int *bluetooth) | |||
202 | u8 wdata = 0, rdata; | 202 | u8 wdata = 0, rdata; |
203 | int result; | 203 | int result; |
204 | 204 | ||
205 | result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1, 1); | 205 | result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1); |
206 | if (result < 0) | 206 | if (result < 0) |
207 | return -1; | 207 | return -1; |
208 | 208 | ||