mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
mhi: core: remove inline declarations from header file
No need to have dummy inline functions since client drivers are not supposed to call MHI related functions if MHI bus driver is not enabled. CRs-Fixed: 2235421 Change-Id: I5cb0fe5be4931f5610913d2e68a07785a4c743fb Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
This commit is contained in:
parent
3ee4b6f5c8
commit
94852b7fc1
@ -347,8 +347,6 @@ static inline void mhi_free_controller(struct mhi_controller *mhi_cntrl)
|
||||
kfree(mhi_cntrl);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_MHI_BUS)
|
||||
|
||||
/**
|
||||
* mhi_driver_register - Register driver with MHI framework
|
||||
* @mhi_drv: mhi_driver structure
|
||||
@ -527,137 +525,6 @@ int mhi_download_rddm_img(struct mhi_controller *mhi_cntrl, bool in_panic);
|
||||
*/
|
||||
int mhi_force_rddm_mode(struct mhi_controller *mhi_cntrl);
|
||||
|
||||
#else
|
||||
|
||||
static inline int mhi_driver_register(struct mhi_driver *mhi_drv)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline void mhi_driver_unregister(struct mhi_driver *mhi_drv)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int mhi_device_configure(struct mhi_device *mhi_div,
|
||||
enum dma_data_direction dir,
|
||||
struct mhi_buf *mhi_buf,
|
||||
int elements)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline void mhi_device_get(struct mhi_device *mhi_dev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int mhi_device_get_sync(struct mhi_device *mhi_dev)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline void mhi_device_put(struct mhi_device *mhi_dev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int mhi_prepare_for_transfer(struct mhi_device *mhi_dev)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline void mhi_unprepare_from_transfer(struct mhi_device *mhi_dev)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static inline int mhi_get_no_free_descriptors(struct mhi_device *mhi_dev,
|
||||
enum dma_data_direction dir)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int mhi_poll(struct mhi_device *mhi_dev, u32 budget)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline long mhi_ioctl(struct mhi_device *mhi_dev,
|
||||
unsigned int cmd,
|
||||
unsigned long arg)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline struct mhi_controller *mhi_alloc_controller(size_t size)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline int of_register_mhi_controller(struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline void mhi_unregister_mhi_controller(
|
||||
struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
}
|
||||
|
||||
static inline struct mhi_controller *mhi_bdf_to_controller(u32 domain,
|
||||
u32 bus,
|
||||
u32 slot,
|
||||
u32 dev_id)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline int mhi_prepare_for_power_up(struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int mhi_async_power_up(struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int mhi_sync_power_up(struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline void mhi_power_down(struct mhi_controller *mhi_cntrl,
|
||||
bool graceful)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void mhi_unprepare_after_power_down(
|
||||
struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int mhi_pm_suspend(struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int mhi_pm_resume(struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int mhi_download_rddm_img(struct mhi_controller *mhi_cntrl,
|
||||
bool in_panic)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inlint int mhi_force_rddm_mode(struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_ARCH_QCOM
|
||||
|
||||
#ifdef CONFIG_MHI_DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user