Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-10 Thread Aaron Lu
On 10/10/2013 12:29 PM, Jani Nikula wrote: > On Thu, 10 Oct 2013, Aaron Lu wrote: >> On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: >>> On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: +bool backlight_device_registered(enum backlight_type type) +{ + bool found = false; >>

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-10 Thread Aaron Lu
On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: > On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: >> Introduce a new API for modules to query if a specific type of backlight >> device has been registered. This is useful for some backlight device >> provider module(e.g. ACPI video) to know

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-10 Thread Rafael J. Wysocki
On Thursday, October 10, 2013 08:54:29 AM Aaron Lu wrote: > On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: > > On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: > >> Introduce a new API for modules to query if a specific type of backlight > >> device has been registered. This is useful for

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-10 Thread Rafael J. Wysocki
On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: > Introduce a new API for modules to query if a specific type of backlight > device has been registered. This is useful for some backlight device > provider module(e.g. ACPI video) to know if a native control > interface(e.g. the interface cr

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-09 Thread Jani Nikula
On Thu, 10 Oct 2013, Aaron Lu wrote: > On 10/10/2013 12:29 PM, Jani Nikula wrote: >> On Thu, 10 Oct 2013, Aaron Lu wrote: >>> On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: > +bool backlight_device_registered(enum backlight_type

Re: [PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-09 Thread Jani Nikula
On Thu, 10 Oct 2013, Aaron Lu wrote: > On 10/10/2013 08:25 AM, Rafael J. Wysocki wrote: >> On Tuesday, October 08, 2013 02:39:58 PM Aaron Lu wrote: >>> +bool backlight_device_registered(enum backlight_type type) >>> +{ >>> + bool found = false; >>> + struct backlight_device *bd; >>> + >>> +

[PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-08 Thread Aaron Lu
Introduce a new API for modules to query if a specific type of backlight device has been registered. This is useful for some backlight device provider module(e.g. ACPI video) to know if a native control interface(e.g. the interface created by i915) is available and then do things accordingly(e.g. a