From ff1e88531b59de50a7c4c5ad7b5fbbf9de60ad19 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Sun, 24 Apr 2016 16:47:30 +0900 Subject: [PATCH] maru_bl: min_brighteness is removed "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 --- arch/x86/configs/tizen_emul_defconfig | 2 +- drivers/maru/maru_bl.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/x86/configs/tizen_emul_defconfig b/arch/x86/configs/tizen_emul_defconfig index b19624f4b02e..82c55749ba1c 100644 --- a/arch/x86/configs/tizen_emul_defconfig +++ b/arch/x86/configs/tizen_emul_defconfig @@ -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 diff --git a/drivers/maru/maru_bl.c b/drivers/maru/maru_bl.c index d317bfd75a4f..87cd08802ba8 100644 --- a/drivers/maru/maru_bl.c +++ b/drivers/maru/maru_bl.c @@ -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", -- 2.34.1