Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcbdf0fd authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

msm: wfd: add stubs for when MDP is disabled



The wfd module currently doesn't link when
CONFIG_FB_MSM_MDSS_WRITEBACK=n since mdp-5-subdev.o isn't built. Provide
stubs so that the build doesn't break when MDP is disabled.

Change-Id: Idfb54e38bda0badcd417beec7e3099c3db8dacc4
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent bb1e25b9
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -75,8 +75,20 @@ static inline bool mdp_buf_info_equals(struct mdp_buf_info *a,
#define MDP_SECURE  _IO(MDP_MAGIC_IOCTL, 9)


#ifdef CONFIG_FB_MSM_MDSS_WRITEBACK
extern int mdp_init(struct v4l2_subdev *sd, u32 val);
extern long mdp_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg);
#else
static inline int mdp_init(struct v4l2_subdev *sd, u32 val)
{
	return -ENODEV;
}
static inline long mdp_ioctl(struct v4l2_subdev *sd, unsigned int cmd,
			void *arg)
{
	return -ENODEV;
}
#endif


#endif /* _WFD_MDP_SUBDEV_ */