* [PATCH V5 0/2] Ambient Light Sensor support
@ 2009-08-31 8:07 Zhang Rui
2009-08-31 17:04 ` Len Brown
0 siblings, 1 reply; 7+ messages in thread
From: Zhang Rui @ 2009-08-31 8:07 UTC (permalink / raw)
To: Len Brown
Cc: linux-acpi, Linux Kernel Mailing List, Greg KH, Pavel Machek, Zhang, Rui
Hi, all,
this is the patch set I made for the Ambient Light Sensor device
support in linux kernel.
There are only several trivial changes compared with patch set v4,
and they are made based on the feedback from Len.
1. update the MAINTAINERS file
2. remove the .resume method in ACPI ALS driver.
ACPI ALS driver doesn't use a cached value storing the current
Ambient Light illuminace, thus we don't need to re-evaluate the
_ALI method (to get the current illuminance) on resume.
3. fix a wrong comment in ACPI ALS driver.
Any comments are welcome.
thanks,
rui
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH V5 0/2] Ambient Light Sensor support
2009-08-31 8:07 [PATCH V5 0/2] Ambient Light Sensor support Zhang Rui
@ 2009-08-31 17:04 ` Len Brown
2009-09-01 6:28 ` Dmitry Torokhov
0 siblings, 1 reply; 7+ messages in thread
From: Len Brown @ 2009-08-31 17:04 UTC (permalink / raw)
To: Zhang Rui; +Cc: linux-acpi, Linux Kernel Mailing List, Greg KH, Pavel Machek
I put this in the acpi test tree, with the expectation
that it will have at least one minor revision update
before going upstream.
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH V5 0/2] Ambient Light Sensor support
2009-08-31 17:04 ` Len Brown
@ 2009-09-01 6:28 ` Dmitry Torokhov
2009-09-01 6:47 ` Zhang Rui
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Torokhov @ 2009-09-01 6:28 UTC (permalink / raw)
To: Len Brown
Cc: Zhang Rui, linux-acpi, Linux Kernel Mailing List, Greg KH, Pavel Machek
On Mon, Aug 31, 2009 at 01:04:35PM -0400, Len Brown wrote:
> I put this in the acpi test tree, with the expectation
> that it will have at least one minor revision update
> before going upstream.
>
> thanks,
> Len Brown, Intel Open Source Technology Center
>
Breaks build here...
--
Dmitry
ACPI: als - fix compile errors
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
PREFIX was undefined causing compiler to barf.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
drivers/acpi/als.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/als.c b/drivers/acpi/als.c
index 6743ba7..51583a8 100644
--- a/drivers/acpi/als.c
+++ b/drivers/acpi/als.c
@@ -30,6 +30,8 @@
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
+#define PREFIX "ACPI: "
+
#define ACPI_ALS_CLASS "als"
#define ACPI_ALS_DEVICE_NAME "Ambient Light Sensor"
#define ACPI_ALS_NOTIFY_ILLUMINANCE 0x80
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH V5 0/2] Ambient Light Sensor support
2009-09-01 6:28 ` Dmitry Torokhov
@ 2009-09-01 6:47 ` Zhang Rui
2009-09-01 6:53 ` Zhang Rui
0 siblings, 1 reply; 7+ messages in thread
From: Zhang Rui @ 2009-09-01 6:47 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Len Brown, linux-acpi, Linux Kernel Mailing List, Greg KH, Pavel Machek
On Tue, 2009-09-01 at 14:28 +0800, Dmitry Torokhov wrote:
> On Mon, Aug 31, 2009 at 01:04:35PM -0400, Len Brown wrote:
> > I put this in the acpi test tree, with the expectation
> > that it will have at least one minor revision update
> > before going upstream.
> >
> > thanks,
> > Len Brown, Intel Open Source Technology Center
> >
>
> Breaks build here...
>
that's weird.
I didn't encounter this problem in my test.
could you please send your kernel config file?
thanks,
rui
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH V5 0/2] Ambient Light Sensor support
2009-09-01 6:47 ` Zhang Rui
@ 2009-09-01 6:53 ` Zhang Rui
2009-09-01 7:00 ` Dmitry Torokhov
0 siblings, 1 reply; 7+ messages in thread
From: Zhang Rui @ 2009-09-01 6:53 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Len Brown, linux-acpi, Linux Kernel Mailing List, Greg KH, Pavel Machek
On Tue, 2009-09-01 at 14:47 +0800, Zhang Rui wrote:
> On Tue, 2009-09-01 at 14:28 +0800, Dmitry Torokhov wrote:
> > On Mon, Aug 31, 2009 at 01:04:35PM -0400, Len Brown wrote:
> > > I put this in the acpi test tree, with the expectation
> > > that it will have at least one minor revision update
> > > before going upstream.
> > >
> > > thanks,
> > > Len Brown, Intel Open Source Technology Center
> > >
> >
> > Breaks build here...
> >
> that's weird.
> I didn't encounter this problem in my test.
>
PREFIX is defined in include/acpi/acpi_bus.h,
which has already been included in this driver.
I got this after applying your patch,
CC drivers/acpi/als.o
drivers/acpi/als.c:46:1: warning: "PREFIX" redefined
In file included from drivers/acpi/als.c:30:
include/acpi/acpi_bus.h:33:1: warning: this is the location of the
previous definition
rui
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH V5 0/2] Ambient Light Sensor support
2009-09-01 6:53 ` Zhang Rui
@ 2009-09-01 7:00 ` Dmitry Torokhov
2009-09-01 7:11 ` Zhang Rui
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Torokhov @ 2009-09-01 7:00 UTC (permalink / raw)
To: Zhang Rui
Cc: Len Brown, linux-acpi, Linux Kernel Mailing List, Greg KH, Pavel Machek
On Tue, Sep 01, 2009 at 02:53:02PM +0800, Zhang Rui wrote:
> On Tue, 2009-09-01 at 14:47 +0800, Zhang Rui wrote:
> > On Tue, 2009-09-01 at 14:28 +0800, Dmitry Torokhov wrote:
> > > On Mon, Aug 31, 2009 at 01:04:35PM -0400, Len Brown wrote:
> > > > I put this in the acpi test tree, with the expectation
> > > > that it will have at least one minor revision update
> > > > before going upstream.
> > > >
> > > > thanks,
> > > > Len Brown, Intel Open Source Technology Center
> > > >
> > >
> > > Breaks build here...
> > >
> > that's weird.
> > I didn't encounter this problem in my test.
> >
> PREFIX is defined in include/acpi/acpi_bus.h,
> which has already been included in this driver.
>
> I got this after applying your patch,
> CC drivers/acpi/als.o
> drivers/acpi/als.c:46:1: warning: "PREFIX" redefined
> In file included from drivers/acpi/als.c:30:
> include/acpi/acpi_bus.h:33:1: warning: this is the location of the
> previous definition
>
[dtor@dtor-d630 work]$ grep -r PREFIX include/acpi/acpi_bus.h
[dtor@dtor-d630 work]$
This is acpi test branch merged with latest pull from Linus plus my
for-linus and next branches that don't touch ACPI code.
--
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH V5 0/2] Ambient Light Sensor support
2009-09-01 7:00 ` Dmitry Torokhov
@ 2009-09-01 7:11 ` Zhang Rui
0 siblings, 0 replies; 7+ messages in thread
From: Zhang Rui @ 2009-09-01 7:11 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Len Brown, linux-acpi, Linux Kernel Mailing List, Greg KH, Pavel Machek
On Tue, 2009-09-01 at 15:00 +0800, Dmitry Torokhov wrote:
> On Tue, Sep 01, 2009 at 02:53:02PM +0800, Zhang Rui wrote:
> > On Tue, 2009-09-01 at 14:47 +0800, Zhang Rui wrote:
> > > On Tue, 2009-09-01 at 14:28 +0800, Dmitry Torokhov wrote:
> > > > On Mon, Aug 31, 2009 at 01:04:35PM -0400, Len Brown wrote:
> > > > > I put this in the acpi test tree, with the expectation
> > > > > that it will have at least one minor revision update
> > > > > before going upstream.
> > > > >
> > > > > thanks,
> > > > > Len Brown, Intel Open Source Technology Center
> > > > >
> > > >
> > > > Breaks build here...
> > > >
> > > that's weird.
> > > I didn't encounter this problem in my test.
> > >
> > PREFIX is defined in include/acpi/acpi_bus.h,
> > which has already been included in this driver.
> >
> > I got this after applying your patch,
> > CC drivers/acpi/als.o
> > drivers/acpi/als.c:46:1: warning: "PREFIX" redefined
> > In file included from drivers/acpi/als.c:30:
> > include/acpi/acpi_bus.h:33:1: warning: this is the location of the
> > previous definition
> >
>
> [dtor@dtor-d630 work]$ grep -r PREFIX include/acpi/acpi_bus.h
> [dtor@dtor-d630 work]$
>
> This is acpi test branch merged with latest pull from Linus plus my
> for-linus and next branches that don't touch ACPI code.
>
hah, right,
this is caused by commit a192a9580bcc41692be1f36b77c3b681827f566a,
which removes the "PREFIX" in include/acpi/acpi_bus.h
commit a192a9580bcc41692be1f36b77c3b681827f566a
Author: Len Brown <len.brown@intel.com>
Date: Tue Jul 28 16:45:54 2009 -0400
ACPI: Move definition of PREFIX from acpi_bus.h to internal..h
Linux/ACPI core files using internal.h all PREFIX "ACPI: ",
however, not all ACPI drivers use/want it -- and they
should not have to #undef PREFIX to define their own.
Add GPL commment to internal.h while we are there.
This does not change any actual console output,
asside from a whitespace fix.
Signed-off-by: Len Brown <len.brown@intel.com>
thanks for finding and fixing this.
thanks,
rui
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-09-01 7:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-31 8:07 [PATCH V5 0/2] Ambient Light Sensor support Zhang Rui
2009-08-31 17:04 ` Len Brown
2009-09-01 6:28 ` Dmitry Torokhov
2009-09-01 6:47 ` Zhang Rui
2009-09-01 6:53 ` Zhang Rui
2009-09-01 7:00 ` Dmitry Torokhov
2009-09-01 7:11 ` Zhang Rui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®