From: SeokYeon Hwang Date: Sun, 24 Apr 2016 07:47:30 +0000 (+0900) Subject: maru_bl: min_brighteness is removed X-Git-Tag: submit/tizen/20160607.132125~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F33%2F67033%2F4;p=sdk%2Femulator%2Femulator-kernel.git 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 --- 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",