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

Commit b73a21fc authored by Jingoo Han's avatar Jingoo Han Committed by Paul Mundt
Browse files

video: s3c-fb: fix checkpatch errors and warning



This patch fixes the checkpatch errors listed below:

ERROR: space required before the open parenthesis '('
ERROR: need consistent spacing around '+' (ctx:WxV)
ERROR: space prohibited before that close parenthesis ')'

Also, following warning is fixed by adding 'platid' variable
which can reduce number of lines exceeding 80 characters.

WARNING: line over 80 characters

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent e9c5db0b
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -1304,6 +1304,7 @@ static void s3c_fb_clear_win(struct s3c_fb *sfb, int win)


static int __devinit s3c_fb_probe(struct platform_device *pdev)
static int __devinit s3c_fb_probe(struct platform_device *pdev)
{
{
	const struct platform_device_id *platid;
	struct s3c_fb_driverdata *fbdrv;
	struct s3c_fb_driverdata *fbdrv;
	struct device *dev = &pdev->dev;
	struct device *dev = &pdev->dev;
	struct s3c_fb_platdata *pd;
	struct s3c_fb_platdata *pd;
@@ -1312,7 +1313,8 @@ static int __devinit s3c_fb_probe(struct platform_device *pdev)
	int win;
	int win;
	int ret = 0;
	int ret = 0;


	fbdrv = (struct s3c_fb_driverdata *)platform_get_device_id(pdev)->driver_data;
	platid = platform_get_device_id(pdev);
	fbdrv = (struct s3c_fb_driverdata *)platid->driver_data;


	if (fbdrv->variant.nr_windows > S3C_FB_MAX_WIN) {
	if (fbdrv->variant.nr_windows > S3C_FB_MAX_WIN) {
		dev_err(dev, "too many windows, cannot attach\n");
		dev_err(dev, "too many windows, cannot attach\n");