Thread (3 messages) 3 messages, 3 authors, 2012-03-12

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

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
+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");


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help