mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-30 19:41:15 +00:00
drm/msm: Remove unnecessary (void*) conversions
Pointer variables of (void*) type do not require type cast. Signed-off-by: Su Hui <suhui@nfschina.com> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/540599/ Link: https://lore.kernel.org/r/20230522013213.25876-1-suhui@nfschina.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
parent
4fb5ad612c
commit
eea9cf72b7
@ -69,7 +69,7 @@ static void roq_print(struct msm_gpu *gpu, struct drm_printer *p)
|
|||||||
|
|
||||||
static int show(struct seq_file *m, void *arg)
|
static int show(struct seq_file *m, void *arg)
|
||||||
{
|
{
|
||||||
struct drm_info_node *node = (struct drm_info_node *) m->private;
|
struct drm_info_node *node = m->private;
|
||||||
struct drm_device *dev = node->minor->dev;
|
struct drm_device *dev = node->minor->dev;
|
||||||
struct msm_drm_private *priv = dev->dev_private;
|
struct msm_drm_private *priv = dev->dev_private;
|
||||||
struct drm_printer p = drm_seq_file_printer(m);
|
struct drm_printer p = drm_seq_file_printer(m);
|
||||||
|
|||||||
@ -1392,7 +1392,7 @@ DEFINE_SHOW_ATTRIBUTE(_dpu_debugfs_status);
|
|||||||
|
|
||||||
static int dpu_crtc_debugfs_state_show(struct seq_file *s, void *v)
|
static int dpu_crtc_debugfs_state_show(struct seq_file *s, void *v)
|
||||||
{
|
{
|
||||||
struct drm_crtc *crtc = (struct drm_crtc *) s->private;
|
struct drm_crtc *crtc = s->private;
|
||||||
struct dpu_crtc *dpu_crtc = to_dpu_crtc(crtc);
|
struct dpu_crtc *dpu_crtc = to_dpu_crtc(crtc);
|
||||||
|
|
||||||
seq_printf(s, "client type: %d\n", dpu_crtc_get_client_type(crtc));
|
seq_printf(s, "client type: %d\n", dpu_crtc_get_client_type(crtc));
|
||||||
|
|||||||
@ -57,8 +57,8 @@ static void _dpu_kms_mmu_destroy(struct dpu_kms *dpu_kms);
|
|||||||
static int _dpu_danger_signal_status(struct seq_file *s,
|
static int _dpu_danger_signal_status(struct seq_file *s,
|
||||||
bool danger_status)
|
bool danger_status)
|
||||||
{
|
{
|
||||||
struct dpu_kms *kms = (struct dpu_kms *)s->private;
|
|
||||||
struct dpu_danger_safe_status status;
|
struct dpu_danger_safe_status status;
|
||||||
|
struct dpu_kms *kms = s->private;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!kms->hw_mdp) {
|
if (!kms->hw_mdp) {
|
||||||
|
|||||||
@ -229,7 +229,7 @@ static void mdp5_kms_destroy(struct msm_kms *kms)
|
|||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
static int smp_show(struct seq_file *m, void *arg)
|
static int smp_show(struct seq_file *m, void *arg)
|
||||||
{
|
{
|
||||||
struct drm_info_node *node = (struct drm_info_node *) m->private;
|
struct drm_info_node *node = m->private;
|
||||||
struct drm_device *dev = node->minor->dev;
|
struct drm_device *dev = node->minor->dev;
|
||||||
struct msm_drm_private *priv = dev->dev_private;
|
struct msm_drm_private *priv = dev->dev_private;
|
||||||
struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(priv->kms));
|
struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(priv->kms));
|
||||||
|
|||||||
@ -211,7 +211,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(shrink_fops,
|
|||||||
|
|
||||||
static int msm_gem_show(struct seq_file *m, void *arg)
|
static int msm_gem_show(struct seq_file *m, void *arg)
|
||||||
{
|
{
|
||||||
struct drm_info_node *node = (struct drm_info_node *) m->private;
|
struct drm_info_node *node = m->private;
|
||||||
struct drm_device *dev = node->minor->dev;
|
struct drm_device *dev = node->minor->dev;
|
||||||
struct msm_drm_private *priv = dev->dev_private;
|
struct msm_drm_private *priv = dev->dev_private;
|
||||||
int ret;
|
int ret;
|
||||||
@ -229,7 +229,7 @@ static int msm_gem_show(struct seq_file *m, void *arg)
|
|||||||
|
|
||||||
static int msm_mm_show(struct seq_file *m, void *arg)
|
static int msm_mm_show(struct seq_file *m, void *arg)
|
||||||
{
|
{
|
||||||
struct drm_info_node *node = (struct drm_info_node *) m->private;
|
struct drm_info_node *node = m->private;
|
||||||
struct drm_device *dev = node->minor->dev;
|
struct drm_device *dev = node->minor->dev;
|
||||||
struct drm_printer p = drm_seq_file_printer(m);
|
struct drm_printer p = drm_seq_file_printer(m);
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ static int msm_mm_show(struct seq_file *m, void *arg)
|
|||||||
|
|
||||||
static int msm_fb_show(struct seq_file *m, void *arg)
|
static int msm_fb_show(struct seq_file *m, void *arg)
|
||||||
{
|
{
|
||||||
struct drm_info_node *node = (struct drm_info_node *) m->private;
|
struct drm_info_node *node = m->private;
|
||||||
struct drm_device *dev = node->minor->dev;
|
struct drm_device *dev = node->minor->dev;
|
||||||
struct drm_framebuffer *fb, *fbdev_fb = NULL;
|
struct drm_framebuffer *fb, *fbdev_fb = NULL;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user