]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
backlight: move register definitions from header to source
authorKim, Milo <Milo.Kim@ti.com>
Mon, 30 Jul 2012 21:40:50 +0000 (14:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:15 +0000 (17:25 -0700)
ROM boundary definitions do not need to be exported because these are
used only internally in the lp855x driver.

And few code cosmetic changes

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/lp855x_bl.c
include/linux/lp855x.h

index 72a0e0c917cf3246ecf21d0b2bed41b9c3b502b3..3d24314bc4e14ac76078ee1de25f23dbdfba7394 100644 (file)
 #include <linux/lp855x.h>
 
 /* Registers */
-#define BRIGHTNESS_CTRL                (0x00)
-#define DEVICE_CTRL            (0x01)
+#define BRIGHTNESS_CTRL                0x00
+#define DEVICE_CTRL            0x01
+#define EEPROM_START           0xA0
+#define EEPROM_END             0xA7
+#define EPROM_START            0xA0
+#define EPROM_END              0xAF
 
 #define BUF_SIZE               20
 #define DEFAULT_BL_NAME                "lcd-backlight"
index 781a490a451b556168a0ab02c20b9e59d45c4018..cc76f1f18f18fc88b2c8cceb94901eb3976733ae 100644 (file)
                                (LP8556_I2C_ONLY << BRT_MODE_SHFT))
 #define LP8556_COMB2_CONFIG    (LP8556_COMBINED2 << BRT_MODE_SHFT)
 
-/* ROM area boundary */
-#define EEPROM_START   (0xA0)
-#define EEPROM_END     (0xA7)
-#define EPROM_START    (0xA0)
-#define EPROM_END      (0xAF)
-
 enum lp855x_chip_id {
        LP8550,
        LP8551,