Skip to content

Commit

Permalink
rfkill: add the GPS radio type
Browse files Browse the repository at this point in the history
Althoug GPS is a technology w/o transmitting radio
and thus not a primary candidate for rfkill switch,
rfkill gives unified interface point for devices with
wireless technology.

The input key is not supplied as it is too be deprecated.

Cc: [email protected]
Signed-off-by: Tomas Winkler <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
Tomas Winkler authored and linvjw committed Aug 4, 2009
1 parent 87cdb98 commit 3ad2014
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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 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 3ad2014

Please sign in to comment.