Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Mark Zhang
On 10/23/2013 06:58 PM, Thierry Reding wrote: > On Wed, Oct 23, 2013 at 06:46:17PM +0800, Mark Zhang wrote: >> On 10/23/2013 06:36 PM, Mark Zhang wrote: >>> On 10/23/2013 05:09 PM, Thierry Reding wrote: On Wed, Oct 23, 2013 at 04:49:29PM +0800, Mark Zhang wrote: > On 10/23/2013 04:00 PM, T

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Mark Zhang
On 10/23/2013 06:54 PM, Thierry Reding wrote: > On Wed, Oct 23, 2013 at 06:31:30PM +0800, Mark Zhang wrote: >> On 10/23/2013 05:09 PM, Thierry Reding wrote: >>> On Wed, Oct 23, 2013 at 04:49:29PM +0800, Mark Zhang wrote: On 10/23/2013 04:00 PM, Thierry Reding wrote: > On Wed, Oct 23, 2013

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Thierry Reding
On Wed, Oct 23, 2013 at 06:46:17PM +0800, Mark Zhang wrote: > On 10/23/2013 06:36 PM, Mark Zhang wrote: > > On 10/23/2013 05:09 PM, Thierry Reding wrote: > >> On Wed, Oct 23, 2013 at 04:49:29PM +0800, Mark Zhang wrote: > >>> On 10/23/2013 04:00 PM, Thierry Reding wrote: > On Wed, Oct 23, 2013

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Thierry Reding
On Wed, Oct 23, 2013 at 06:31:30PM +0800, Mark Zhang wrote: > On 10/23/2013 05:09 PM, Thierry Reding wrote: > > On Wed, Oct 23, 2013 at 04:49:29PM +0800, Mark Zhang wrote: > >> On 10/23/2013 04:00 PM, Thierry Reding wrote: > >>> On Wed, Oct 23, 2013 at 10:16:24AM +0800, Mark Zhang wrote: > On

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Thierry Reding
On Wed, Oct 23, 2013 at 06:36:01PM +0800, Mark Zhang wrote: > On 10/23/2013 05:09 PM, Thierry Reding wrote: > > On Wed, Oct 23, 2013 at 04:49:29PM +0800, Mark Zhang wrote: > >> On 10/23/2013 04:00 PM, Thierry Reding wrote: > >>> On Wed, Oct 23, 2013 at 10:16:24AM +0800, Mark Zhang wrote: > On

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Mark Zhang
On 10/23/2013 06:36 PM, Mark Zhang wrote: > On 10/23/2013 05:09 PM, Thierry Reding wrote: >> On Wed, Oct 23, 2013 at 04:49:29PM +0800, Mark Zhang wrote: >>> On 10/23/2013 04:00 PM, Thierry Reding wrote: On Wed, Oct 23, 2013 at 10:16:24AM +0800, Mark Zhang wrote: > On 10/22/2013 08:49 PM, T

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Mark Zhang
On 10/23/2013 05:09 PM, Thierry Reding wrote: > On Wed, Oct 23, 2013 at 04:49:29PM +0800, Mark Zhang wrote: >> On 10/23/2013 04:00 PM, Thierry Reding wrote: >>> On Wed, Oct 23, 2013 at 10:16:24AM +0800, Mark Zhang wrote: On 10/22/2013 08:49 PM, Thierry Reding wrote: > On Tue, Oct 22, 2013

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Mark Zhang
On 10/23/2013 05:09 PM, Thierry Reding wrote: > On Wed, Oct 23, 2013 at 04:49:29PM +0800, Mark Zhang wrote: >> On 10/23/2013 04:00 PM, Thierry Reding wrote: >>> On Wed, Oct 23, 2013 at 10:16:24AM +0800, Mark Zhang wrote: On 10/22/2013 08:49 PM, Thierry Reding wrote: > On Tue, Oct 22, 2013

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Thierry Reding
On Wed, Oct 23, 2013 at 04:49:29PM +0800, Mark Zhang wrote: > On 10/23/2013 04:00 PM, Thierry Reding wrote: > > On Wed, Oct 23, 2013 at 10:16:24AM +0800, Mark Zhang wrote: > >> On 10/22/2013 08:49 PM, Thierry Reding wrote: > >>> On Tue, Oct 22, 2013 at 04:55:09PM +0800, Mark Zhang wrote: > On

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Mark Zhang
On 10/23/2013 04:00 PM, Thierry Reding wrote: > On Wed, Oct 23, 2013 at 10:16:24AM +0800, Mark Zhang wrote: >> On 10/22/2013 08:49 PM, Thierry Reding wrote: >>> On Tue, Oct 22, 2013 at 04:55:09PM +0800, Mark Zhang wrote: On 10/22/2013 03:24 PM, Thierry Reding wrote: > On Fri, Oct 18, 2013

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-23 Thread Thierry Reding
On Wed, Oct 23, 2013 at 10:16:24AM +0800, Mark Zhang wrote: > On 10/22/2013 08:49 PM, Thierry Reding wrote: > > On Tue, Oct 22, 2013 at 04:55:09PM +0800, Mark Zhang wrote: > >> On 10/22/2013 03:24 PM, Thierry Reding wrote: > >>> On Fri, Oct 18, 2013 at 12:48:12PM +0800, Mark Zhang wrote: > >> [...]

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-22 Thread Mark Zhang
On 10/22/2013 08:49 PM, Thierry Reding wrote: > On Tue, Oct 22, 2013 at 04:55:09PM +0800, Mark Zhang wrote: >> On 10/22/2013 03:24 PM, Thierry Reding wrote: >>> On Fri, Oct 18, 2013 at 12:48:12PM +0800, Mark Zhang wrote: >> [...] > Okay, I just want to set the "notify" function pointe

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-22 Thread Thierry Reding
On Tue, Oct 22, 2013 at 04:55:09PM +0800, Mark Zhang wrote: > On 10/22/2013 03:24 PM, Thierry Reding wrote: > > On Fri, Oct 18, 2013 at 12:48:12PM +0800, Mark Zhang wrote: > [...] > >>> > >> > >> Okay, I just want to set the "notify" function pointer in "struct > >> platform_pwm_backlight_data", be

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-22 Thread Mark Zhang
On 10/22/2013 03:24 PM, Thierry Reding wrote: > On Fri, Oct 18, 2013 at 12:48:12PM +0800, Mark Zhang wrote: [...] >>> >> >> Okay, I just want to set the "notify" function pointer in "struct >> platform_pwm_backlight_data", because I want to tune the brightness >> value before the pwm-bl sets the br

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-22 Thread Thierry Reding
On Fri, Oct 18, 2013 at 12:48:12PM +0800, Mark Zhang wrote: > On 10/17/2013 03:14 PM, Thierry Reding wrote: > > On Thu, Oct 17, 2013 at 02:49:57PM +0800, Mark Zhang wrote: > >> Hi, > >> > >> This is the first time I send mail to linux-pwm, I didn't read through > >> the mails in this list, so if so

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-21 Thread Mark Zhang
Ping Thierry... Mark On 10/18/2013 12:48 PM, Mark Zhang wrote: > On 10/17/2013 03:14 PM, Thierry Reding wrote: >> On Thu, Oct 17, 2013 at 02:49:57PM +0800, Mark Zhang wrote: >>> Hi, >>> >>> This is the first time I send mail to linux-pwm, I didn't read through >>> the mails in this list, so if som

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-17 Thread Mark Zhang
On 10/17/2013 03:14 PM, Thierry Reding wrote: > On Thu, Oct 17, 2013 at 02:49:57PM +0800, Mark Zhang wrote: >> Hi, >> >> This is the first time I send mail to linux-pwm, I didn't read through >> the mails in this list, so if somebody already asked this question, I'm >> sorry about that. >> >> I wan

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-17 Thread Thierry Reding
On Thu, Oct 17, 2013 at 02:49:57PM +0800, Mark Zhang wrote: > Hi, > > This is the first time I send mail to linux-pwm, I didn't read through > the mails in this list, so if somebody already asked this question, I'm > sorry about that. > > I wanna set some fops in "struct platform_pwm_backlight_da

How to set fops in "struct platform_pwm_backlight_data"?

2013-10-16 Thread Mark Zhang
Hi, This is the first time I send mail to linux-pwm, I didn't read through the mails in this list, so if somebody already asked this question, I'm sorry about that. I wanna set some fops in "struct platform_pwm_backlight_data". But the currrent probe function in pwm_bl.c says: --- if (!data)