maru_bl: min_brighteness is removed 33/67033/4
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Sun, 24 Apr 2016 07:47:30 +0000 (16:47 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 25 Apr 2016 07:17:20 +0000 (16:17 +0900)
"min_brightness" is removed from struct backlight_properties. Minimum
brightness is always 0, so it is useless anymore.
"MARU_BACKLIGHT" is built as a default.

Change-Id: I1a2406f950d32d5a4b343d58cf8dc968c1811c03
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
arch/x86/configs/tizen_emul_defconfig
drivers/maru/maru_bl.c

index b19624f..82c5574 100644 (file)
@@ -3435,7 +3435,7 @@ CONFIG_ANDROID=y
 CONFIG_MARU=y
 CONFIG_MARU_VIRTIO_TOUCHSCREEN=y
 # CONFIG_MARU_CAMERA is not set
-# CONFIG_MARU_BACKLIGHT is not set
+CONFIG_MARU_BACKLIGHT=y
 CONFIG_MARU_JACK=y
 CONFIG_MARU_VIRTIO_HWKEY=y
 CONFIG_MARU_VIRTIO_TABLET=y
index d317bfd..87cd088 100644 (file)
@@ -43,7 +43,6 @@
 
 #define MARUBL_DRIVER_NAME                     "maru_backlight"
 
-#define MIN_BRIGHTNESS 0
 #define MAX_BRIGHTNESS 100
 
 static struct pci_device_id marubl_pci_table[] = {
@@ -74,7 +73,6 @@ struct marubl {
 static struct marubl *marubl_device;
 /* ========================================================================== */
 
-static int min_brightness = MIN_BRIGHTNESS;
 static int max_brightness = MAX_BRIGHTNESS;
 
 static int marubl_get_intensity(struct backlight_device *bd)
@@ -262,7 +260,6 @@ static int marubl_probe(struct pci_dev *pci_dev,
         * register backlight device
         */
        memset(&props, 0, sizeof(struct backlight_properties));
-       props.min_brightness = min_brightness;
        props.max_brightness = max_brightness;
        props.type = BACKLIGHT_PLATFORM;
        bd = backlight_device_register("emulator",