maru_brightness : Modified the setting method 93/17593/1
authorjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 26 Feb 2014 07:30:10 +0000 (16:30 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Fri, 7 Mar 2014 04:18:51 +0000 (13:18 +0900)
Call the set function of brightness when "on" is entered,
instead setting force internally.

Change-Id: I669b68655616d9e9de83d66fb882339f4cf68d1b
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
drivers/maru/maru_bl.c

index c653614282feaba893d4ef421a251f5351e0d3f6..2fbbdc8c17e29948493ee0304e68cc731d07b165 100644 (file)
@@ -156,8 +156,10 @@ static ssize_t hbm_store_status(struct device *dev,
        }
 
        if (ret) {
-               marubl_device->brightness = MAX_BRIGHTNESS;
-               writel(marubl_device->brightness, marubl_device->marubl_mmreg);
+               mutex_lock(&marubl_device->bl_dev->ops_lock);
+               marubl_device->bl_dev->props.brightness = MAX_BRIGHTNESS;
+               marubl_send_intensity(marubl_device->bl_dev);
+               mutex_unlock(&marubl_device->bl_dev->ops_lock);
        }
        marubl_device->hbm_on = ret;
        printk(KERN_INFO "[%s] hbm = %d\n", __func__, ret);