From patchwork Thu Sep 2 15:57:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: raja_mani@ti.com X-Patchwork-Id: 149401 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o82EkNF6004248 for ; Thu, 2 Sep 2010 14:46:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755606Ab0IBOqb (ORCPT ); Thu, 2 Sep 2010 10:46:31 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:59966 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755582Ab0IBOqa (ORCPT ); Thu, 2 Sep 2010 10:46:30 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o82EkM42026712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Sep 2010 09:46:22 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o82Ek913000162; Thu, 2 Sep 2010 09:46:20 -0500 (CDT) From: raja_mani@ti.com To: hverkuil@xs4all.nl, linux-media@vger.kernel.org, mchehab@infradead.org Cc: matti.j.aaltonen@nokia.com, Raja Mani , Pramodh AG Subject: [RFC/PATCH 4/8] drivers:staging:ti-st: Move get region func to FM RX module. Date: Thu, 2 Sep 2010 11:57:56 -0400 Message-Id: <1283443080-30644-5-git-send-email-raja_mani@ti.com> X-Mailer: git-send-email 1.6.5 In-Reply-To: <1283443080-30644-4-git-send-email-raja_mani@ti.com> References: <1283443080-30644-1-git-send-email-raja_mani@ti.com> <1283443080-30644-2-git-send-email-raja_mani@ti.com> <1283443080-30644-3-git-send-email-raja_mani@ti.com> <1283443080-30644-4-git-send-email-raja_mani@ti.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Sep 2010 14:46:41 +0000 (UTC) diff --git a/drivers/staging/ti-st/fmdrv_rx.c b/drivers/staging/ti-st/fmdrv_rx.c index a9df59f..1213927 100644 --- a/drivers/staging/ti-st/fmdrv_rx.c +++ b/drivers/staging/ti-st/fmdrv_rx.c @@ -319,6 +319,13 @@ int fm_rx_get_currband_lowhigh_freq(struct fmdrv_ops *fmdev, return 0; } +/* Returns current band index (0-Europe/US; 1-Japan) */ +int fm_rx_get_region(struct fmdrv_ops *fmdev, unsigned char *region) +{ + *region = fmdev->rx.region.region_index; + return 0; +} + /* Sets band (0-Europe/US; 1-Japan) */ int fm_rx_set_region(struct fmdrv_ops *fmdev, unsigned char region_to_set) diff --git a/drivers/staging/ti-st/fmdrv_rx.h b/drivers/staging/ti-st/fmdrv_rx.h index 2ca3eda..e89a175 100644 --- a/drivers/staging/ti-st/fmdrv_rx.h +++ b/drivers/staging/ti-st/fmdrv_rx.h @@ -51,6 +51,7 @@ int fm_rx_get_rssi_threshold(struct fmdrv_ops *, short*); int fm_rx_get_rfdepend_softmute(struct fmdrv_ops *, unsigned char*); int fm_rx_get_deemphasis_mode(struct fmdrv_ops *, unsigned short*); int fm_rx_get_af_switch(struct fmdrv_ops *, unsigned char *); +int fm_rx_get_region(struct fmdrv_ops*, unsigned char*); #endif