soc: make snd_event stub functions as static inline
Modify snd_event stub functions prototype as static inline to make sure that there are no multiple definition errors in the case of static compilation. Change-Id: I0848be946b332df22c045b8e5fed4c39b7ee0fda Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
This commit is contained in:
@@ -38,39 +38,39 @@ inline bool is_snd_event_fwk_enabled(void)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int snd_event_client_register(struct device *dev,
|
static inline int snd_event_client_register(struct device *dev,
|
||||||
const struct snd_event_ops *snd_ev_ops,
|
const struct snd_event_ops *snd_ev_ops,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int snd_event_client_deregister(struct device *dev)
|
static inline int snd_event_client_deregister(struct device *dev)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int snd_event_master_register(struct device *dev,
|
static inline int snd_event_master_register(struct device *dev,
|
||||||
const struct snd_event_ops *ops,
|
const struct snd_event_ops *ops,
|
||||||
struct snd_event_clients *clients,
|
struct snd_event_clients *clients,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int snd_event_master_deregister(struct device *dev)
|
static inline int snd_event_master_deregister(struct device *dev)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int snd_event_notify(struct device *dev, unsigned int state)
|
static inline int snd_event_notify(struct device *dev, unsigned int state)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void snd_event_mstr_add_client(struct snd_event_clients **snd_clients,
|
static inline void snd_event_mstr_add_client(struct snd_event_clients **snd_clients,
|
||||||
int (*compare)(struct device *, void *),
|
int (*compare)(struct device *, void *),
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
inline bool is_snd_event_fwk_enabled(void)
|
static inline bool is_snd_event_fwk_enabled(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user