{
int retval;
int raw_state = !!(state & WIFI_STA);
+ u32 in[HCI_WORDS] = { HCI_SET, HCI_RF_CONTROL, raw_state, HCI_WIRELESS_POWER, 0, 0 };
+ u32 out[HCI_WORDS];
dprintk("set_wireless raw_state: %x\n", raw_state);
- u32 in[HCI_WORDS] = { HCI_SET, HCI_RF_CONTROL, raw_state, HCI_WIRELESS_POWER, 0, 0 };
- u32 out[HCI_WORDS];
hci_raw(in, out);
raw_state |= !!(state & BT_STA) << 0x1; /* bit 1 */
{
u32 in[HCI_WORDS] = { 0, 0, 0, 0, 0, 0 };
u32 out[HCI_WORDS];
+ acpi_status status;
in[0] = HCI_SET;
in[1] = HCI_HOTKEY_EVENT;
in[2] = (state & HKEY_FN) ? 1 : 0;
- acpi_status status = hci_raw(in, out);
+
+ status = hci_raw(in, out);
dprintk("set_hotkeys (Fn interface) raw_state: %x\n", in[2]);
static int omnibook_get_backlight(struct backlight_device *bd);
static int omnibook_set_backlight(struct backlight_device *bd);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)
+static struct backlight_properties props;
+#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21)
static struct backlight_ops omnibookbl_ops = {
#else /* 2.6.21 */
#ifdef CONFIG_OMNIBOOK_BACKLIGHT
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)
- struct backlight_properties props;
memset (&props, 0, sizeof(struct backlight_properties));
props.max_brightness = omnibook_max_brightness;
omnibook_backlight_device =