|
From: <mar...@us...> - 2007-09-24 18:33:54
|
Revision: 1340
http://hackndev.svn.sourceforge.net/hackndev/?rev=1340&view=rev
Author: marex_z71
Date: 2007-09-24 11:33:52 -0700 (Mon, 24 Sep 2007)
Log Message:
-----------
PalmZ72: align to 80 characters and simplify code
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/leds/led-palmz72.c
Modified: linux4palm/linux/trunk/drivers/leds/led-palmz72.c
===================================================================
--- linux4palm/linux/trunk/drivers/leds/led-palmz72.c 2007-09-24 15:59:23 UTC (rev 1339)
+++ linux4palm/linux/trunk/drivers/leds/led-palmz72.c 2007-09-24 18:33:52 UTC (rev 1340)
@@ -21,13 +21,10 @@
#include <asm/arch/pxa-regs.h>
#include <asm/hardware/scoop.h>
-
-static void palmz72led_green_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void palmz72led_green_set(struct led_classdev *led_cdev,
+ enum led_brightness value)
{
- if (value)
- SET_PALMZ72_GPIO(LED,1);
- else
- SET_PALMZ72_GPIO(LED,0);
+ SET_PALMZ72_GPIO(LED, value ? 1 : 0);
}
static struct led_classdev palmz72_green_led = {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|