diff mbox

[RFC/PATCH,4/8] drivers:staging:ti-st: Move get region func to FM RX module.

Message ID 1283443080-30644-5-git-send-email-raja_mani@ti.com (mailing list archive)
State Rejected
Headers show

Commit Message

raja_mani@ti.com Sept. 2, 2010, 3:57 p.m. UTC
None
diff mbox

Patch

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