Searched refs:atylevel (Results 1 – 2 of 2) sorted by relevance
1738 int atylevel; in aty128_bl_get_level_brightness() local1742 atylevel = MAX_LEVEL - in aty128_bl_get_level_brightness()1745 if (atylevel < 0) in aty128_bl_get_level_brightness()1746 atylevel = 0; in aty128_bl_get_level_brightness()1747 else if (atylevel > MAX_LEVEL) in aty128_bl_get_level_brightness()1748 atylevel = MAX_LEVEL; in aty128_bl_get_level_brightness()1750 return atylevel; in aty128_bl_get_level_brightness()
2194 int atylevel; in aty_bl_get_level_brightness() local2198 atylevel = info->bl_curve[level] * FB_BACKLIGHT_MAX / MAX_LEVEL; in aty_bl_get_level_brightness()2200 if (atylevel < 0) in aty_bl_get_level_brightness()2201 atylevel = 0; in aty_bl_get_level_brightness()2202 else if (atylevel > MAX_LEVEL) in aty_bl_get_level_brightness()2203 atylevel = MAX_LEVEL; in aty_bl_get_level_brightness()2205 return atylevel; in aty_bl_get_level_brightness()