Re: [PATCH] Added backlight driver for Acer Aspire 4736

From
Joe Perches <joe@perches.com>
Date
2012-03-12 23:07:59
Also in
lkml
Reply to
Pradeep Subrahmanion, 2012-03-12
On Mon, 2012-03-12 at 23:12 -0400, Pradeep Subrahmanion wrote:
Hi ,
Hello yourself.

Just some trivial comments:
quoted hunk ↗ jump to hunk
diff --git a/drivers/video/backlight/acer4736_bl.c b/drivers/video/backlight/acer4736_bl.c
[]
Please add
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
before any include
quoted hunk ↗ jump to hunk
+static int update_brightness(struct backlight_device *bd)
+{
+	u8 intensity = bd->props.brightness;
+	if (intensity > max_brightness) {
+		printk(KERN_INFO "Acer4736_bl: Invalid parameter. Maximum value is %d"
+		, max_brightness);
Beginning a line with a comma is not at all common and
should be avoided.  printks need newline terminations,
and this would be better as pr_info.  Maybe:

		pr_info("Invalid parameter %u: Maximum allowed value: %u\n",
			intensity, max_brightness);
+	printk(KERN_INFO "Loading Acer 4736 backlight driver\n");
	pr_info("Loading backlight driver\n");


Thread (3 messages) 3 messages, 3 authors, last reply 2012-03-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help