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>
}
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);