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()
2204 int atylevel; in aty_bl_get_level_brightness() local2208 atylevel = info->bl_curve[level] * FB_BACKLIGHT_MAX / MAX_LEVEL; in aty_bl_get_level_brightness()2210 if (atylevel < 0) in aty_bl_get_level_brightness()2211 atylevel = 0; in aty_bl_get_level_brightness()2212 else if (atylevel > MAX_LEVEL) in aty_bl_get_level_brightness()2213 atylevel = MAX_LEVEL; in aty_bl_get_level_brightness()2215 return atylevel; in aty_bl_get_level_brightness()