Searched refs:atylevel (Results 1 – 2 of 2) sorted by relevance
1740 int atylevel; in aty128_bl_get_level_brightness() local1744 atylevel = MAX_LEVEL - in aty128_bl_get_level_brightness()1747 if (atylevel < 0) in aty128_bl_get_level_brightness()1748 atylevel = 0; in aty128_bl_get_level_brightness()1749 else if (atylevel > MAX_LEVEL) in aty128_bl_get_level_brightness()1750 atylevel = MAX_LEVEL; in aty128_bl_get_level_brightness()1752 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()