소스 검색

backlight: move register definitions from header to source

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>
Kim, Milo 13 년 전
부모
커밋
a1fcb2e318
2개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. 6 2
      drivers/video/backlight/lp855x_bl.c
  2. 0 6
      include/linux/lp855x.h

+ 6 - 2
drivers/video/backlight/lp855x_bl.c

@@ -17,8 +17,12 @@
 #include <linux/lp855x.h>
 #include <linux/lp855x.h>
 
 
 /* Registers */
 /* 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 BUF_SIZE		20
 #define DEFAULT_BL_NAME		"lcd-backlight"
 #define DEFAULT_BL_NAME		"lcd-backlight"

+ 0 - 6
include/linux/lp855x.h

@@ -47,12 +47,6 @@
 				(LP8556_I2C_ONLY << BRT_MODE_SHFT))
 				(LP8556_I2C_ONLY << BRT_MODE_SHFT))
 #define LP8556_COMB2_CONFIG	(LP8556_COMBINED2 << 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 {
 enum lp855x_chip_id {
 	LP8550,
 	LP8550,
 	LP8551,
 	LP8551,