Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107086
b: refs/heads/master
c: f1b2336
h: refs/heads/master
v: v3
  • Loading branch information
Henrique de Moraes Holschuh authored and John W. Linville committed Jul 29, 2008
1 parent 05858b6 commit 867e7dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37f55e9d78d1b63047b1b7ae175cdce650547ba8
refs/heads/master: f1b23361a0f15497d4c6795a2935b2e98064ddfb
8 changes: 5 additions & 3 deletions trunk/include/linux/rfkill.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ enum rfkill_state {
* @user_claim_unsupported: Whether the hardware supports exclusive
* RF-kill control by userspace. Set this before registering.
* @user_claim: Set when the switch is controlled exlusively by userspace.
* @mutex: Guards switch state transitions
* @mutex: Guards switch state transitions. It serializes callbacks
* and also protects the state.
* @data: Pointer to the RF button drivers private data which will be
* passed along when toggling radio state.
* @toggle_radio(): Mandatory handler to control state of the radio.
Expand All @@ -89,12 +90,13 @@ struct rfkill {
const char *name;
enum rfkill_type type;

enum rfkill_state state;
bool user_claim_unsupported;
bool user_claim;

/* the mutex serializes callbacks and also protects
* the state */
struct mutex mutex;

enum rfkill_state state;
void *data;
int (*toggle_radio)(void *data, enum rfkill_state state);
int (*get_state)(void *data, enum rfkill_state *state);
Expand Down

0 comments on commit 867e7dd

Please sign in to comment.