nvidiafb: fix nvidia_bl_get_level_brightness() calc
PATCH 1/1 nvidiafb: fix nvidia_bl_get_level_brightness() calc
nvidiafb: fix nvidia_bl_get_level_brightness() level calc
drivers/video/nvidia/nv_backlight.c +2 -1
@@ -26,6 +26,7 @@*/ #define MIN_LEVEL 0x158#define MAX_LEVEL 0x534 +#define LEVEL_STEP ((MAX_LEVEL - MIN_LEVEL) / FB_BACKLIGHT_MAX)static struct backlight_properties nvidia_bl_data;
@@ -37,7 +38,7 @@/* Get and convert the value */ mutex_lock (&info->bl_mutex); - nlevel = info->bl_curve[level] *FB_BACKLIGHT_MAX /MAX_LEVEL ; + nlevel =MIN_LEVEL + info->bl_curve[level] *LEVEL_STEP ;mutex_unlock (&info->bl_mutex);if (nlevel <0 )
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 1 line · Aristeu Sergio Rozanski Filho
nvidiafb: fix
nvidia_bl_get_level_brightness()level calc
Nack, I'll submit a bigger fix patch in a few minutes.
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642