Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159392
b: refs/heads/master
c: 3ad2014
h: refs/heads/master
v: v3
  • Loading branch information
Tomas Winkler authored and John W. Linville committed Aug 4, 2009
1 parent 800e3ac commit d85e7a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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: 87cdb9894b9367237f25e5a4c381eb8e594e782b
refs/heads/master: 3ad201496badddd8e1cda87ee6d29e8b3b8e1279
1 change: 1 addition & 0 deletions trunk/include/linux/rfkill.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ enum rfkill_type {
RFKILL_TYPE_UWB,
RFKILL_TYPE_WIMAX,
RFKILL_TYPE_WWAN,
RFKILL_TYPE_GPS,
NUM_RFKILL_TYPES,
};

Expand Down
4 changes: 3 additions & 1 deletion trunk/net/rfkill/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,13 @@ static const char *rfkill_get_type_str(enum rfkill_type type)
return "wimax";
case RFKILL_TYPE_WWAN:
return "wwan";
case RFKILL_TYPE_GPS:
return "gps";
default:
BUG();
}

BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_WWAN + 1);
BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_GPS + 1);
}

static ssize_t rfkill_type_show(struct device *dev,
Expand Down

0 comments on commit d85e7a8

Please sign in to comment.