lkml.org 
[lkml]   [2008]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Backlight driver for Tabletkiosk Sahara TouchIT-213 Tablet PC
On Mon, 28 Jul 2008 22:03:00 +0200
Claudio Nieder <private@claudio.ch> wrote:

>
> ...
>
> +void kb3886_bl_set_intensity(int intensity)
> +{
> + mutex_lock(&bl_mutex);
> + intensity = intensity&0xff;
> + outb(KB3886_ADC_DAC_PWM, KB3886_PARENT);
> + mdelay(10);
> + outb(KB3886_PWM0_WRITE, KB3886_IO);
> + mdelay(10);
> + outb(intensity, KB3886_IO);
> + mutex_unlock(&bl_mutex);
> +}

I believe the mdelay()s could be converted to the preferable msleep()?

> ...
>


\
 
 \ /
  Last update: 2008-08-11 22:53    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site