disp: msm: move from drm_mode to msm_mode
Move away from the private and private_flags fields from drm_mode, as it is being deprecated in latest kernel version. Instead, Add msm_display_mode as a wrapper to be used in downstream to store these parameters. Also, store msm_mode in connector_state to be accessed in commit path. Change-Id: Ia5bdebe75f00aa15fb7db4dc3a0d50c30894a95c Signed-off-by: Orion Brody <obrody@codeaurora.org>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (C) 2013 Red Hat
|
||||
* Author: Rob Clark <robdclark@gmail.com>
|
||||
*
|
||||
@@ -295,6 +295,18 @@ enum panel_op_mode {
|
||||
MSM_DISPLAY_MODE_MAX,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct msm_display_mode - wrapper for drm_display_mode
|
||||
* @base: drm_display_mode attached to this msm_mode
|
||||
* @private_flags: integer holding private driver mode flags
|
||||
* @private: pointer to private driver information
|
||||
*/
|
||||
struct msm_display_mode {
|
||||
struct drm_display_mode *base;
|
||||
u32 private_flags;
|
||||
u32 *private;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct msm_ratio - integer ratio
|
||||
* @numer: numerator
|
||||
|
Referens i nytt ärende
Block a user