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

Commit 9821ed04 authored by Mike Rapoport's avatar Mike Rapoport Committed by Greg Kroah-Hartman
Browse files

staging: sm750fb: use direct call to hw_sm750_output_setMode



The proc_setMode method in lynx_output always uses the same
implementation and there is no point to use redirection rather than
direct function call.

Signed-off-by: default avatarMike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c202beee
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -386,7 +386,7 @@ static int lynxfb_ops_set_par(struct fb_info *info)
	}
	ret = hw_sm750_crtc_setMode(crtc, var, fix);
	if (!ret)
		ret = output->proc_setMode(output, var, fix);
		ret = hw_sm750_output_setMode(output, var, fix);
	return ret;
}

@@ -674,8 +674,6 @@ static int sm750fb_set_drv(struct lynxfb_par *par)
	crtc->ypanstep = 1;
	crtc->ywrapstep = 0;

	output->proc_setMode = hw_sm750_output_setMode;

	output->proc_setBLANK = (share->revid == SM750LE_REVISION_ID) ?
				 hw_sm750le_setBLANK : hw_sm750_setBLANK;
	/* chip specific phase */
+0 −4
Original line number Diff line number Diff line
@@ -125,10 +125,6 @@ struct lynxfb_output {
	*/
	void *priv;

	int (*proc_setMode)(struct lynxfb_output*,
						struct fb_var_screeninfo*,
						struct fb_fix_screeninfo*);

	int (*proc_setBLANK)(struct lynxfb_output*, int);
};