From patchwork Fri Nov 13 03:25:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janakiram Sistla X-Patchwork-Id: 59706 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAD3PS8S010971 for ; Fri, 13 Nov 2009 03:25:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755416AbZKMDZV (ORCPT ); Thu, 12 Nov 2009 22:25:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755339AbZKMDZV (ORCPT ); Thu, 12 Nov 2009 22:25:21 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:33083 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755117AbZKMDZU (ORCPT ); Thu, 12 Nov 2009 22:25:20 -0500 Received: by bwz27 with SMTP id 27so2996475bwz.21 for ; Thu, 12 Nov 2009 19:25:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=N7TvJfzGYGkmpUZfzUs4TQcQOSyXiBbMx6TM7HzxUjk=; b=jy0ojs9XF9lXRu6//hGFoPmVLDGI4PRBha63oVMm1OCtfuDSX0TIVPaWmOwlBmwkhD XEBY3YqcPqZE50GQEEX/5zgPJz+mGUjYAZ/mXg3UxrMJzo9Y0HAg1M3hefPUGb54iT7P nF8y6G0GtCzHFjMxw9oiELaq9Ww2uYpn58Gr4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=YXQhprXDHuEoa6c5UrzQLuNtIZuywQnuPyy2LTkbvl8/ppP4DRJAVrVMt5usktk3b6 x44RMJ1/RBV6Ent5fVEJE5IGqYxlxguYfWA+7MPzvijOlYaHts607G6APtLZA/0/nRSX 9OOqUR9MxBVNJtvCrLG4SbHv5K0SRYz7CgkwE= MIME-Version: 1.0 Received: by 10.204.162.143 with SMTP id v15mr360341bkx.50.1258082725162; Thu, 12 Nov 2009 19:25:25 -0800 (PST) In-Reply-To: <20091113030950.GB4054@tuxdriver.com> References: <4fb5db50911121909h1619e483ga4aa395af8fc1161@mail.gmail.com> <20091113030950.GB4054@tuxdriver.com> Date: Fri, 13 Nov 2009 08:55:25 +0530 Message-ID: <4fb5db50911121925t1a6770ddtbd5f01477470046d@mail.gmail.com> Subject: Re: [patch 0/1] Adding radio type FM From: Janakiram Sistla To: "John W. Linville" Cc: majordomo@vger.kernel.org, linux-wireless , linux-kernel@vger.kernel.org Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/include/linux/input.h b/include/linux/input.h index 0ccfc30..f03ae90 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -376,6 +376,7 @@ struct input_absinfo { #define KEY_DISPLAY_OFF 245 /* display device to off state */ #define KEY_WIMAX 246 +#define KEY_FM 247 /* Range 248 - 255 is reserved for special needs of AT keyboard driver */ diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h index 3392c59..03f5598 100644 --- a/include/linux/rfkill.h +++ b/include/linux/rfkill.h @@ -45,6 +45,7 @@ enum rfkill_type { RFKILL_TYPE_WIMAX, RFKILL_TYPE_WWAN, RFKILL_TYPE_GPS, + RFKILL_TYPE_FM, NUM_RFKILL_TYPES, }; diff --git a/net/rfkill/core.c b/net/rfkill/core.c index ba2efb9..b8ac206 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c @@ -592,6 +592,8 @@ static const char *rfkill_get_type_str(enum rfkill_type type) return "wwan"; case RFKILL_TYPE_GPS: return "gps"; + case RRFKILL_TYPE_FM: + return "fm"; default: BUG(); } diff --git a/net/rfkill/input.c b/net/rfkill/input.c index a7295ad..f51b16d 100644 --- a/net/rfkill/input.c +++ b/net/rfkill/input.c @@ -212,6 +212,9 @@ static void rfkill_event(struct input_handle *handle, unsigned int type, case KEY_WIMAX: rfkill_schedule_toggle(RFKILL_TYPE_WIMAX); break; + case KEY_FM: + rfkill_schedule_toggle(RFKILL_TYPE_FM); + break; } } else if (type == EV_SW && code == SW_RFKILL_ALL)