xo1-rfkill.c (faa3d77749ad30d2e1c48e2e4363b9c4889aca27) | xo1-rfkill.c (3bf9428f220911795edde453a95f9509945004e5) |
---|---|
1/* 2 * Support for rfkill through the OLPC XO-1 laptop embedded controller 3 * 4 * Copyright (C) 2010 One Laptop per Child 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 */ 11 12#include <linux/module.h> 13#include <linux/platform_device.h> 14#include <linux/rfkill.h> | 1/* 2 * Support for rfkill through the OLPC XO-1 laptop embedded controller 3 * 4 * Copyright (C) 2010 One Laptop per Child 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 */ 11 12#include <linux/module.h> 13#include <linux/platform_device.h> 14#include <linux/rfkill.h> |
15#include <linux/olpc-ec.h> |
|
15 | 16 |
16#include <asm/olpc.h> 17 | |
18static bool card_blocked; 19 20static int rfkill_set_block(void *data, bool blocked) 21{ 22 unsigned char cmd; 23 int r; 24 25 if (blocked == card_blocked) --- 60 unchanged lines hidden --- | 17static bool card_blocked; 18 19static int rfkill_set_block(void *data, bool blocked) 20{ 21 unsigned char cmd; 22 int r; 23 24 if (blocked == card_blocked) --- 60 unchanged lines hidden --- |