/* Called when the battery is low to limit the backlight intensity. If limit==0 clear any limit, otherwise limit the intensity  */
void corgibl_limit_intensity(int limit)
/* Called when the battery is low to limit the backlight intensity. If limit==0 clear any limit, otherwise limit the intensity  */
void corgibl_limit_intensity(int limit)
{
	struct backlight_device *bd = generic_backlight_device;
	mutex_lock(&bd->ops_lock);
	if (limit)
		bd->props.state |= GENERICBL_BATTLOW;
	else
		bd->props.state &= ~GENERICBL_BATTLOW;
	backlight_update_status(generic_backlight_device);
	mutex_unlock(&bd->ops_lock);
}