ASoC: wcd_cpe_core: Mark functions as static

Some of the functions that are supposed to be static are not declared to
be static. Cleanup the driver to make sure all functions specific to
this file are marked as static.

Change-Id: Ie2e0a7a1df5d49e8b6ed2af90b1a727e5c08746d
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
This commit is contained in:
Bhalchandra Gajare 2015-12-03 18:38:14 -08:00 committed by David Keitel
parent 159c5b3b4a
commit c2c5e11c28

View file

@ -757,7 +757,7 @@ static unsigned int wcd_cpe_state_poll(struct snd_info_entry *entry,
* wcd_cpe_is_online_state - return true if card is online state
* @core: core offline to query
*/
bool wcd_cpe_is_online_state(void *core_handle)
static bool wcd_cpe_is_online_state(void *core_handle)
{
struct wcd_cpe_core *core = core_handle;
if (core_handle) {
@ -984,7 +984,7 @@ static void wcd_cpe_set_and_complete(struct wcd_cpe_core *core,
* @work: work that is scheduled to perform CPE shutdown
* and restart
*/
void wcd_cpe_ssr_work(struct work_struct *work)
static void wcd_cpe_ssr_work(struct work_struct *work)
{
int rc = 0;
@ -1217,7 +1217,7 @@ static irqreturn_t svass_exception_irq(int irq, void *data)
* Process the request to the command sent to CPE and wakeup the
* command send wait.
*/
void wcd_cpe_cmi_afe_cb(const struct cmi_api_notification *param)
static void wcd_cpe_cmi_afe_cb(const struct cmi_api_notification *param)
{
struct cmi_hdr *hdr;
struct wcd_cmi_afe_port_data *afe_port_d;
@ -2064,7 +2064,7 @@ EXPORT_SYMBOL(wcd_cpe_init);
* This callback is registered with cpe services while registering
* the LSM service
*/
void wcd_cpe_cmi_lsm_callback(const struct cmi_api_notification *param)
static void wcd_cpe_cmi_lsm_callback(const struct cmi_api_notification *param)
{
struct cmi_hdr *hdr;
struct cpe_lsm_session *lsm_session;
@ -3123,10 +3123,10 @@ err_ret:
return ret;
}
int wcd_cpe_lsm_set_data(void *core_handle,
struct cpe_lsm_session *session,
enum lsm_detection_mode detect_mode,
bool detect_failure)
static int wcd_cpe_lsm_set_data(void *core_handle,
struct cpe_lsm_session *session,
enum lsm_detection_mode detect_mode,
bool detect_failure)
{
struct wcd_cpe_core *core = core_handle;
struct cpe_lsm_ids ids;
@ -3160,7 +3160,6 @@ int wcd_cpe_lsm_set_data(void *core_handle,
err_ret:
return ret;
}
EXPORT_SYMBOL(wcd_cpe_lsm_set_data);
/*
* wcd_cpe_lsm_reg_snd_model: register the sound model for listen