Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Su Hui and committed by
Dmitry Baryshkov
eea9cf72 4fb5ad61

+7 -7
+1 -1
drivers/gpu/drm/msm/adreno/a5xx_debugfs.c
··· 69 69 70 70 static int show(struct seq_file *m, void *arg) 71 71 { 72 - struct drm_info_node *node = (struct drm_info_node *) m->private; 72 + struct drm_info_node *node = m->private; 73 73 struct drm_device *dev = node->minor->dev; 74 74 struct msm_drm_private *priv = dev->dev_private; 75 75 struct drm_printer p = drm_seq_file_printer(m);
+1 -1
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
··· 1392 1392 1393 1393 static int dpu_crtc_debugfs_state_show(struct seq_file *s, void *v) 1394 1394 { 1395 - struct drm_crtc *crtc = (struct drm_crtc *) s->private; 1395 + struct drm_crtc *crtc = s->private; 1396 1396 struct dpu_crtc *dpu_crtc = to_dpu_crtc(crtc); 1397 1397 1398 1398 seq_printf(s, "client type: %d\n", dpu_crtc_get_client_type(crtc));
+1 -1
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
··· 57 57 static int _dpu_danger_signal_status(struct seq_file *s, 58 58 bool danger_status) 59 59 { 60 - struct dpu_kms *kms = (struct dpu_kms *)s->private; 61 60 struct dpu_danger_safe_status status; 61 + struct dpu_kms *kms = s->private; 62 62 int i; 63 63 64 64 if (!kms->hw_mdp) {
+1 -1
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c
··· 229 229 #ifdef CONFIG_DEBUG_FS 230 230 static int smp_show(struct seq_file *m, void *arg) 231 231 { 232 - struct drm_info_node *node = (struct drm_info_node *) m->private; 232 + struct drm_info_node *node = m->private; 233 233 struct drm_device *dev = node->minor->dev; 234 234 struct msm_drm_private *priv = dev->dev_private; 235 235 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(priv->kms));
+3 -3
drivers/gpu/drm/msm/msm_debugfs.c
··· 211 211 212 212 static int msm_gem_show(struct seq_file *m, void *arg) 213 213 { 214 - struct drm_info_node *node = (struct drm_info_node *) m->private; 214 + struct drm_info_node *node = m->private; 215 215 struct drm_device *dev = node->minor->dev; 216 216 struct msm_drm_private *priv = dev->dev_private; 217 217 int ret; ··· 229 229 230 230 static int msm_mm_show(struct seq_file *m, void *arg) 231 231 { 232 - struct drm_info_node *node = (struct drm_info_node *) m->private; 232 + struct drm_info_node *node = m->private; 233 233 struct drm_device *dev = node->minor->dev; 234 234 struct drm_printer p = drm_seq_file_printer(m); 235 235 ··· 240 240 241 241 static int msm_fb_show(struct seq_file *m, void *arg) 242 242 { 243 - struct drm_info_node *node = (struct drm_info_node *) m->private; 243 + struct drm_info_node *node = m->private; 244 244 struct drm_device *dev = node->minor->dev; 245 245 struct drm_framebuffer *fb, *fbdev_fb = NULL; 246 246