aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-12-17 19:00:21 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-17 20:15:15 -0500
commit0a75a568b3ad31976f8b2606936227495cd3c5da (patch)
treee419695ad27a7098a2cd716aab33d86478219ac4 /drivers/video
parentc0b6cc499c1a214b51bac45d2c74ba66953efedc (diff)
backlight: jornada720: fix checkpatch error and warning
This patch fixes the checkpatch error and warning as below: ERROR: return is not a function, parentheses are not required Also, long comments are fixed for the preferred style. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/backlight/jornada720_bl.c31
1 files changed, 19 insertions, 12 deletions
diff --git a/drivers/video/backlight/jornada720_bl.c b/drivers/video/backlight/jornada720_bl.c
index 16f593b64427..fef6ce4fad71 100644
--- a/drivers/video/backlight/jornada720_bl.c
+++ b/drivers/video/backlight/jornada720_bl.c
@@ -48,7 +48,7 @@ static int jornada_bl_get_brightness(struct backlight_device *bd)
48 48
49 jornada_ssp_end(); 49 jornada_ssp_end();
50 50
51 return (BL_MAX_BRIGHT - ret); 51 return BL_MAX_BRIGHT - ret;
52} 52}
53 53
54static int jornada_bl_update_status(struct backlight_device *bd) 54static int jornada_bl_update_status(struct backlight_device *bd)
@@ -77,18 +77,23 @@ static int jornada_bl_update_status(struct backlight_device *bd)
77 goto out; 77 goto out;
78 } 78 }
79 79
80 /* at this point we expect that the mcu has accepted 80 /*
81 our command and is waiting for our new value 81 * at this point we expect that the mcu has accepted
82 please note that maximum brightness is 255, 82 * our command and is waiting for our new value
83 but due to physical layout it is equal to 0, so we simply 83 * please note that maximum brightness is 255,
84 invert the value (MAX VALUE - NEW VALUE). */ 84 * but due to physical layout it is equal to 0, so we simply
85 if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) != TXDUMMY) { 85 * invert the value (MAX VALUE - NEW VALUE).
86 */
87 if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness)
88 != TXDUMMY) {
86 pr_err("set brightness failed\n"); 89 pr_err("set brightness failed\n");
87 ret = -ETIMEDOUT; 90 ret = -ETIMEDOUT;
88 } 91 }
89 92
90 /* If infact we get an TXDUMMY as output we are happy and dont 93 /*
91 make any further comments about it */ 94 * If infact we get an TXDUMMY as output we are happy and dont
95 * make any further comments about it
96 */
92out: 97out:
93 jornada_ssp_end(); 98 jornada_ssp_end();
94 99
@@ -121,9 +126,11 @@ static int jornada_bl_probe(struct platform_device *pdev)
121 126
122 bd->props.power = FB_BLANK_UNBLANK; 127 bd->props.power = FB_BLANK_UNBLANK;
123 bd->props.brightness = BL_DEF_BRIGHT; 128 bd->props.brightness = BL_DEF_BRIGHT;
124 /* note. make sure max brightness is set otherwise 129 /*
125 you will get seemingly non-related errors when 130 * note. make sure max brightness is set otherwise
126 trying to change brightness */ 131 * you will get seemingly non-related errors when
132 * trying to change brightness
133 */
127 jornada_bl_update_status(bd); 134 jornada_bl_update_status(bd);
128 135
129 platform_set_drvdata(pdev, bd); 136 platform_set_drvdata(pdev, bd);