disp: msm: sde: remove sde_hw_blk

The sde_hw_blk was meant to be a generic base object for all
SDE HW blocks, however, it enforces using a common set of ops
which is not practical when blocks have different capabilities.
Since this object was never used as intended and is not doing
anything functional today, remove the dead weight.

Change-Id: If76006c1ae5c62e8d7d77b100837dbaf6c661bd3
Signed-off-by: Steve Cohen <quic_cohens@quicinc.com>
This commit is contained in:
Steve Cohen
2021-06-07 19:51:37 -04:00
committato da Jeykumar Sankaran
parent 5fe7c2f8a0
commit d9794d82cd
36 ha cambiato i file con 190 aggiunte e 620 eliminazioni

Vedi File

@@ -9,7 +9,6 @@
#include "sde_hw_catalog.h"
#include "sde_hw_mdss.h"
#include "sde_hw_util.h"
#include "sde_hw_blk.h"
#include <drm/msm_drm_pp.h>
struct sde_hw_pingpong;
@@ -147,7 +146,6 @@ struct sde_hw_merge_3d_ops {
};
struct sde_hw_merge_3d {
struct sde_hw_blk base;
struct sde_hw_blk_reg_map hw;
/* merge_3d */
@@ -159,7 +157,6 @@ struct sde_hw_merge_3d {
};
struct sde_hw_pingpong {
struct sde_hw_blk base;
struct sde_hw_blk_reg_map hw;
/* pingpong */
@@ -174,13 +171,13 @@ struct sde_hw_pingpong {
};
/**
* sde_hw_pingpong - convert base object sde_hw_base to container
* @hw: Pointer to base hardware block
* to_sde_hw_pingpong - convert base hw object to sde_hw_pingpong container
* @hw: Pointer to hardware block register map object
* return: Pointer to hardware block container
*/
static inline struct sde_hw_pingpong *to_sde_hw_pingpong(struct sde_hw_blk *hw)
static inline struct sde_hw_pingpong *to_sde_hw_pingpong(struct sde_hw_blk_reg_map *hw)
{
return container_of(hw, struct sde_hw_pingpong, base);
return container_of(hw, struct sde_hw_pingpong, hw);
}
/**
@@ -191,15 +188,15 @@ static inline struct sde_hw_pingpong *to_sde_hw_pingpong(struct sde_hw_blk *hw)
* @m: Pointer to mdss catalog data
* Returns: Error code or allocated sde_hw_pingpong context
*/
struct sde_hw_pingpong *sde_hw_pingpong_init(enum sde_pingpong idx,
struct sde_hw_blk_reg_map *sde_hw_pingpong_init(enum sde_pingpong idx,
void __iomem *addr,
struct sde_mdss_cfg *m);
/**
* sde_hw_pingpong_destroy - destroys pingpong driver context
* should be called to free the context
* @pp: Pointer to PP driver context returned by sde_hw_pingpong_init
* @hw: Pointer to hardware block register map object
*/
void sde_hw_pingpong_destroy(struct sde_hw_pingpong *pp);
void sde_hw_pingpong_destroy(struct sde_hw_blk_reg_map *hw);
#endif /*_SDE_HW_PINGPONG_H */