* problems with backlight
@ 2007-10-02 17:45 Luís Cargnini
2007-10-02 18:03 ` Felipe Balbi
0 siblings, 1 reply; 8+ messages in thread
From: Luís Cargnini @ 2007-10-02 17:45 UTC (permalink / raw)
To: OMAP
Dear fellows,
I had the following problems compiling for omap with omap backlight enabled,
the following error:
make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
<stdin>:1385:2: warning: #warning syscall fallocate not implemented
CHK include/linux/compile.h
CC [M] drivers/video/backlight/omap_bl.o
drivers/video/backlight/omap_bl.c: In function 'omapbl_suspend':
drivers/video/backlight/omap_bl.c:79: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_resume':
drivers/video/backlight/omap_bl.c:88: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_set_power':
drivers/video/backlight/omap_bl.c:100: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_update_status':
drivers/video/backlight/omap_bl.c:110: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_get_intensity':
drivers/video/backlight/omap_bl.c:130: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_remove':
drivers/video/backlight/omap_bl.c:185: error: 'struct backlight_device' has
no member named 'class_dev'
make[3]: *** [drivers/video/backlight/omap_bl.o] Error 1
make[2]: *** [drivers/video/backlight] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
looking he source code:
struct omap_backlight {
int powermode;
int current_intensity;
struct device *dev;
struct omap_backlight_config *pdata;
};
but :
#ifdef CONFIG_PM
static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
{
struct backlight_device *dev = platform_get_drvdata(pdev);
struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
omapbl_blank(bl, FB_BLANK_POWERDOWN);
return 0;
}
someone have figured this problem before ?
can I make the fix ?
There is no fix, no problem I'm just creating one ?
--
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500 extension: 7696
---------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* problems with backlight
@ 2007-10-02 17:57 Luís Cargnini
2007-10-02 18:16 ` David Brownell
0 siblings, 1 reply; 8+ messages in thread
From: Luís Cargnini @ 2007-10-02 17:57 UTC (permalink / raw)
To: OMAP
Dear fellows,
I had the following problems compiling for omap with omap backlight enabled,
the following error:
make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
<stdin>:1385:2: warning: #warning syscall fallocate not implemented
CHK include/linux/compile.h
CC [M] drivers/video/backlight/omap_bl.o
drivers/video/backlight/omap_bl.c: In function 'omapbl_suspend':
drivers/video/backlight/omap_bl.c:79: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_resume':
drivers/video/backlight/omap_bl.c:88: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_set_power':
drivers/video/backlight/omap_bl.c:100: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_update_status':
drivers/video/backlight/omap_bl.c:110: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_get_intensity':
drivers/video/backlight/omap_bl.c:130: error: 'struct backlight_device' has
no member named 'class_dev'
drivers/video/backlight/omap_bl.c: In function 'omapbl_remove':
drivers/video/backlight/omap_bl.c:185: error: 'struct backlight_device' has
no member named 'class_dev'
make[3]: *** [drivers/video/backlight/omap_bl.o] Error 1
make[2]: *** [drivers/video/backlight] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
looking he source code:
struct omap_backlight {
int powermode;
int current_intensity;
struct device *dev;
struct omap_backlight_config *pdata;
};
but :
#ifdef CONFIG_PM
static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
{
struct backlight_device *dev = platform_get_drvdata(pdev);
struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
omapbl_blank(bl, FB_BLANK_POWERDOWN);
return 0;
}
someone have figured this problem before ?
can I make the fix ?
There is no fix, no problem I'm just creating one ?
--
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500 extension: 7696
---------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problems with backlight
2007-10-02 17:45 Luís Cargnini
@ 2007-10-02 18:03 ` Felipe Balbi
2007-10-02 18:08 ` Felipe Balbi
0 siblings, 1 reply; 8+ messages in thread
From: Felipe Balbi @ 2007-10-02 18:03 UTC (permalink / raw)
To: lvcargnini; +Cc: OMAP
[-- Attachment #1: Type: text/plain, Size: 3564 bytes --]
Hi Luis,
On 10/2/07, Luís Cargnini <lvcargnini@gmail.com> wrote:
> Dear fellows,
> I had the following problems compiling for omap with omap backlight enabled,
> the following error:
> make
> CHK include/linux/version.h
> make[1]: `include/asm-arm/mach-types.h' is up to date.
> CHK include/linux/utsrelease.h
> CALL scripts/checksyscalls.sh
> <stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
> <stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
> <stdin>:1321:2: warning: #warning syscall pselect6 not implemented
> <stdin>:1325:2: warning: #warning syscall ppoll not implemented
> <stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
> <stdin>:1385:2: warning: #warning syscall fallocate not implemented
> CHK include/linux/compile.h
> CC [M] drivers/video/backlight/omap_bl.o
> drivers/video/backlight/omap_bl.c: In function 'omapbl_suspend':
> drivers/video/backlight/omap_bl.c:79: error: 'struct backlight_device' has
> no member named 'class_dev'
> drivers/video/backlight/omap_bl.c: In function 'omapbl_resume':
> drivers/video/backlight/omap_bl.c:88: error: 'struct backlight_device' has
> no member named 'class_dev'
> drivers/video/backlight/omap_bl.c: In function 'omapbl_set_power':
> drivers/video/backlight/omap_bl.c:100: error: 'struct backlight_device' has
> no member named 'class_dev'
> drivers/video/backlight/omap_bl.c: In function 'omapbl_update_status':
> drivers/video/backlight/omap_bl.c:110: error: 'struct backlight_device' has
> no member named 'class_dev'
> drivers/video/backlight/omap_bl.c: In function 'omapbl_get_intensity':
> drivers/video/backlight/omap_bl.c:130: error: 'struct backlight_device' has
> no member named 'class_dev'
> drivers/video/backlight/omap_bl.c: In function 'omapbl_remove':
> drivers/video/backlight/omap_bl.c:185: error: 'struct backlight_device' has
> no member named 'class_dev'
> make[3]: *** [drivers/video/backlight/omap_bl.o] Error 1
> make[2]: *** [drivers/video/backlight] Error 2
> make[1]: *** [drivers/video] Error 2
> make: *** [drivers] Error 2
>
> looking he source code:
> struct omap_backlight {
> int powermode;
> int current_intensity;
>
> struct device *dev;
> struct omap_backlight_config *pdata;
> };
>
>
> but :
> #ifdef CONFIG_PM
> static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
> {
> struct backlight_device *dev = platform_get_drvdata(pdev);
> struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
>
> omapbl_blank(bl, FB_BLANK_POWERDOWN);
> return 0;
> }
>
> someone have figured this problem before ?
> can I make the fix ?
> There is no fix, no problem I'm just creating one ?
Check if the attached fixes the issue...
If it works, I'll send a proper formated patch
>
> --
> ------------------------------------------------------------------------------
> Thanks && Regards
> Msc. Bsc. Luís Vitório Cargnini
> IEEE Member
> Electrical Engineer Faculty @ PUCRS
> Ipiranga Avenue, 6681 – Building 30
> P.O. Box: 90619-900 – Porto Alegre/RS
> Phone: +55 51 3320 3500 extension: 7696
> ---------------------------------------------------------------------------------
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
--
Best Regards,
Felipe Balbi
felipebalbi@users.sourceforge.net
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: omap_backlight.diff --]
[-- Type: text/x-patch; name="omap_backlight.diff", Size: 2370 bytes --]
diff --git a/drivers/video/backlight/omap_bl.c b/drivers/video/backlight/omap_bl.c
index 3249bf8..7c94e26 100644
--- a/drivers/video/backlight/omap_bl.c
+++ b/drivers/video/backlight/omap_bl.c
@@ -76,7 +76,7 @@ static void omapbl_blank(struct omap_backlight *bl, int mode)
static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
{
struct backlight_device *dev = platform_get_drvdata(pdev);
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = class_get_devdata(&dev->dev);
omapbl_blank(bl, FB_BLANK_POWERDOWN);
return 0;
@@ -85,7 +85,7 @@ static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
static int omapbl_resume(struct platform_device *pdev)
{
struct backlight_device *dev = platform_get_drvdata(pdev);
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = class_get_devdata(&dev->dev);
omapbl_blank(bl, bl->powermode);
return 0;
@@ -97,7 +97,7 @@ static int omapbl_resume(struct platform_device *pdev)
static int omapbl_set_power(struct backlight_device *dev, int state)
{
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = class_get_devdata(&dev->dev);
omapbl_blank(bl, state);
bl->powermode = state;
@@ -107,7 +107,7 @@ static int omapbl_set_power(struct backlight_device *dev, int state)
static int omapbl_update_status(struct backlight_device *dev)
{
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = class_get_devdata(&dev->dev);
if (bl->current_intensity != dev->props.brightness) {
if (dev->props.brightness < 0)
@@ -127,7 +127,7 @@ static int omapbl_update_status(struct backlight_device *dev)
static int omapbl_get_intensity(struct backlight_device *dev)
{
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = class_get_devdata(&dev->dev);
return bl->current_intensity;
}
@@ -182,7 +182,7 @@ static int omapbl_probe(struct platform_device *pdev)
static int omapbl_remove(struct platform_device *pdev)
{
struct backlight_device *dev = platform_get_drvdata(pdev);
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = class_get_devdata(&dev->dev);
backlight_device_unregister(dev);
kfree(bl);
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: problems with backlight
2007-10-02 18:03 ` Felipe Balbi
@ 2007-10-02 18:08 ` Felipe Balbi
2007-10-03 16:44 ` Luís Cargnini
0 siblings, 1 reply; 8+ messages in thread
From: Felipe Balbi @ 2007-10-02 18:08 UTC (permalink / raw)
To: lvcargnini; +Cc: OMAP
[-- Attachment #1: Type: text/plain, Size: 3971 bytes --]
Sorry,
forgot to change to correct function...
try this one
On 10/2/07, Felipe Balbi <felipebalbi@users.sourceforge.net> wrote:
> Hi Luis,
>
> On 10/2/07, Luís Cargnini <lvcargnini@gmail.com> wrote:
> > Dear fellows,
> > I had the following problems compiling for omap with omap backlight enabled,
> > the following error:
> > make
> > CHK include/linux/version.h
> > make[1]: `include/asm-arm/mach-types.h' is up to date.
> > CHK include/linux/utsrelease.h
> > CALL scripts/checksyscalls.sh
> > <stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
> > <stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
> > <stdin>:1321:2: warning: #warning syscall pselect6 not implemented
> > <stdin>:1325:2: warning: #warning syscall ppoll not implemented
> > <stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
> > <stdin>:1385:2: warning: #warning syscall fallocate not implemented
> > CHK include/linux/compile.h
> > CC [M] drivers/video/backlight/omap_bl.o
> > drivers/video/backlight/omap_bl.c: In function 'omapbl_suspend':
> > drivers/video/backlight/omap_bl.c:79: error: 'struct backlight_device' has
> > no member named 'class_dev'
> > drivers/video/backlight/omap_bl.c: In function 'omapbl_resume':
> > drivers/video/backlight/omap_bl.c:88: error: 'struct backlight_device' has
> > no member named 'class_dev'
> > drivers/video/backlight/omap_bl.c: In function 'omapbl_set_power':
> > drivers/video/backlight/omap_bl.c:100: error: 'struct backlight_device' has
> > no member named 'class_dev'
> > drivers/video/backlight/omap_bl.c: In function 'omapbl_update_status':
> > drivers/video/backlight/omap_bl.c:110: error: 'struct backlight_device' has
> > no member named 'class_dev'
> > drivers/video/backlight/omap_bl.c: In function 'omapbl_get_intensity':
> > drivers/video/backlight/omap_bl.c:130: error: 'struct backlight_device' has
> > no member named 'class_dev'
> > drivers/video/backlight/omap_bl.c: In function 'omapbl_remove':
> > drivers/video/backlight/omap_bl.c:185: error: 'struct backlight_device' has
> > no member named 'class_dev'
> > make[3]: *** [drivers/video/backlight/omap_bl.o] Error 1
> > make[2]: *** [drivers/video/backlight] Error 2
> > make[1]: *** [drivers/video] Error 2
> > make: *** [drivers] Error 2
> >
> > looking he source code:
> > struct omap_backlight {
> > int powermode;
> > int current_intensity;
> >
> > struct device *dev;
> > struct omap_backlight_config *pdata;
> > };
> >
> >
> > but :
> > #ifdef CONFIG_PM
> > static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
> > {
> > struct backlight_device *dev = platform_get_drvdata(pdev);
> > struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
> >
> > omapbl_blank(bl, FB_BLANK_POWERDOWN);
> > return 0;
> > }
> >
> > someone have figured this problem before ?
> > can I make the fix ?
> > There is no fix, no problem I'm just creating one ?
>
> Check if the attached fixes the issue...
>
> If it works, I'll send a proper formated patch
>
> >
> > --
> > ------------------------------------------------------------------------------
> > Thanks && Regards
> > Msc. Bsc. Luís Vitório Cargnini
> > IEEE Member
> > Electrical Engineer Faculty @ PUCRS
> > Ipiranga Avenue, 6681 – Building 30
> > P.O. Box: 90619-900 – Porto Alegre/RS
> > Phone: +55 51 3320 3500 extension: 7696
> > ---------------------------------------------------------------------------------
> > _______________________________________________
> > Linux-omap-open-source mailing list
> > Linux-omap-open-source@linux.omap.com
> > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> >
>
>
> --
> Best Regards,
>
> Felipe Balbi
> felipebalbi@users.sourceforge.net
>
>
--
Best Regards,
Felipe Balbi
felipebalbi@users.sourceforge.net
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: omap_backlight.diff --]
[-- Type: text/x-patch; name="omap_backlight.diff", Size: 2358 bytes --]
diff --git a/drivers/video/backlight/omap_bl.c b/drivers/video/backlight/omap_bl.c
index 3249bf8..2072f28 100644
--- a/drivers/video/backlight/omap_bl.c
+++ b/drivers/video/backlight/omap_bl.c
@@ -76,7 +76,7 @@ static void omapbl_blank(struct omap_backlight *bl, int mode)
static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
{
struct backlight_device *dev = platform_get_drvdata(pdev);
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
omapbl_blank(bl, FB_BLANK_POWERDOWN);
return 0;
@@ -85,7 +85,7 @@ static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
static int omapbl_resume(struct platform_device *pdev)
{
struct backlight_device *dev = platform_get_drvdata(pdev);
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
omapbl_blank(bl, bl->powermode);
return 0;
@@ -97,7 +97,7 @@ static int omapbl_resume(struct platform_device *pdev)
static int omapbl_set_power(struct backlight_device *dev, int state)
{
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
omapbl_blank(bl, state);
bl->powermode = state;
@@ -107,7 +107,7 @@ static int omapbl_set_power(struct backlight_device *dev, int state)
static int omapbl_update_status(struct backlight_device *dev)
{
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
if (bl->current_intensity != dev->props.brightness) {
if (dev->props.brightness < 0)
@@ -127,7 +127,7 @@ static int omapbl_update_status(struct backlight_device *dev)
static int omapbl_get_intensity(struct backlight_device *dev)
{
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
return bl->current_intensity;
}
@@ -182,7 +182,7 @@ static int omapbl_probe(struct platform_device *pdev)
static int omapbl_remove(struct platform_device *pdev)
{
struct backlight_device *dev = platform_get_drvdata(pdev);
- struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+ struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
backlight_device_unregister(dev);
kfree(bl);
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: problems with backlight
2007-10-02 17:57 problems with backlight Luís Cargnini
@ 2007-10-02 18:16 ` David Brownell
0 siblings, 0 replies; 8+ messages in thread
From: David Brownell @ 2007-10-02 18:16 UTC (permalink / raw)
To: lvcargnini, Linux-omap-open-source
> CC [M] drivers/video/backlight/omap_bl.o
> drivers/video/backlight/omap_bl.c: In function 'omapbl_suspend':
> drivers/video/backlight/omap_bl.c:79: error: 'struct backlight_device' has
> no member named 'class_dev'
>
> ...
>
> someone have figured this problem before ?
Yes.
> can I make the fix ?
Why wouldn't you be able to?
> There is no fix, no problem I'm just creating one ?
It's obvious what happened. The interface changed so it
no longer uses "struct class_device". But since omap_bl
isn't in the main kernel.org tree, it wasn't updated with
the other backlight drivers.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problems with backlight
2007-10-02 18:08 ` Felipe Balbi
@ 2007-10-03 16:44 ` Luís Cargnini
2007-10-03 16:54 ` Felipe Balbi
0 siblings, 1 reply; 8+ messages in thread
From: Luís Cargnini @ 2007-10-03 16:44 UTC (permalink / raw)
To: Felipe Balbi; +Cc: OMAP
I applied the patches only now and are compiling the kernel right now
On 10/2/07, Felipe Balbi <felipebalbi@users.sourceforge.net> wrote:
>
> Sorry,
>
> forgot to change to correct function...
>
> try this one
>
>
>
>
>
> On 10/2/07, Felipe Balbi <felipebalbi@users.sourceforge.net> wrote:
> > Hi Luis,
> >
> > On 10/2/07, Luís Cargnini <lvcargnini@gmail.com> wrote:
> > > Dear fellows,
> > > I had the following problems compiling for omap with omap backlight
> enabled,
> > > the following error:
> > > make
> > > CHK include/linux/version.h
> > > make[1]: `include/asm-arm/mach-types.h' is up to date.
> > > CHK include/linux/utsrelease.h
> > > CALL scripts/checksyscalls.sh
> > > <stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
> > > <stdin>:1265:2: warning: #warning syscall migrate_pages not
> implemented
> > > <stdin>:1321:2: warning: #warning syscall pselect6 not implemented
> > > <stdin>:1325:2: warning: #warning syscall ppoll not implemented
> > > <stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
> > > <stdin>:1385:2: warning: #warning syscall fallocate not implemented
> > > CHK include/linux/compile.h
> > > CC [M] drivers/video/backlight/omap_bl.o
> > > drivers/video/backlight/omap_bl.c: In function 'omapbl_suspend':
> > > drivers/video/backlight/omap_bl.c:79: error: 'struct backlight_device'
> has
> > > no member named 'class_dev'
> > > drivers/video/backlight/omap_bl.c: In function 'omapbl_resume':
> > > drivers/video/backlight/omap_bl.c:88: error: 'struct backlight_device'
> has
> > > no member named 'class_dev'
> > > drivers/video/backlight/omap_bl.c: In function 'omapbl_set_power':
> > > drivers/video/backlight/omap_bl.c:100: error: 'struct
> backlight_device' has
> > > no member named 'class_dev'
> > > drivers/video/backlight/omap_bl.c: In function 'omapbl_update_status':
> > > drivers/video/backlight/omap_bl.c:110: error: 'struct
> backlight_device' has
> > > no member named 'class_dev'
> > > drivers/video/backlight/omap_bl.c: In function 'omapbl_get_intensity':
> > > drivers/video/backlight/omap_bl.c:130: error: 'struct
> backlight_device' has
> > > no member named 'class_dev'
> > > drivers/video/backlight/omap_bl.c: In function 'omapbl_remove':
> > > drivers/video/backlight/omap_bl.c:185: error: 'struct
> backlight_device' has
> > > no member named 'class_dev'
> > > make[3]: *** [drivers/video/backlight/omap_bl.o] Error 1
> > > make[2]: *** [drivers/video/backlight] Error 2
> > > make[1]: *** [drivers/video] Error 2
> > > make: *** [drivers] Error 2
> > >
> > > looking he source code:
> > > struct omap_backlight {
> > > int powermode;
> > > int current_intensity;
> > >
> > > struct device *dev;
> > > struct omap_backlight_config *pdata;
> > > };
> > >
> > >
> > > but :
> > > #ifdef CONFIG_PM
> > > static int omapbl_suspend(struct platform_device *pdev, pm_message_t
> state)
> > > {
> > > struct backlight_device *dev = platform_get_drvdata(pdev);
> > > struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
> > >
> > > omapbl_blank(bl, FB_BLANK_POWERDOWN);
> > > return 0;
> > > }
> > >
> > > someone have figured this problem before ?
> > > can I make the fix ?
> > > There is no fix, no problem I'm just creating one ?
> >
> > Check if the attached fixes the issue...
> >
> > If it works, I'll send a proper formated patch
> >
> > >
> > > --
> > >
> ------------------------------------------------------------------------------
> > > Thanks && Regards
> > > Msc. Bsc. Luís Vitório Cargnini
> > > IEEE Member
> > > Electrical Engineer Faculty @ PUCRS
> > > Ipiranga Avenue, 6681 – Building 30
> > > P.O. Box: 90619-900 – Porto Alegre/RS
> > > Phone: +55 51 3320 3500 extension: 7696
> > >
> ---------------------------------------------------------------------------------
> > > _______________________________________________
> > > Linux-omap-open-source mailing list
> > > Linux-omap-open-source@linux.omap.com
> > > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> > >
> >
> >
> > --
> > Best Regards,
> >
> > Felipe Balbi
> > felipebalbi@users.sourceforge.net
> >
> >
>
>
> --
> Best Regards,
>
> Felipe Balbi
> felipebalbi@users.sourceforge.net
>
>
--
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500 extension: 7696
---------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problems with backlight
2007-10-03 16:44 ` Luís Cargnini
@ 2007-10-03 16:54 ` Felipe Balbi
2007-10-03 17:17 ` Luís Cargnini
0 siblings, 1 reply; 8+ messages in thread
From: Felipe Balbi @ 2007-10-03 16:54 UTC (permalink / raw)
To: lvcargnini; +Cc: OMAP
Hi,
On 10/3/07, Luís Cargnini <lvcargnini@gmail.com> wrote:
> I applied the patches only now and are compiling the kernel right now
please confirm it's working. I can't test it on OMAP boards right due
to time issues :-p
>
>
> On 10/2/07, Felipe Balbi <felipebalbi@users.sourceforge.net
> > wrote:
> > Sorry,
> >
> > forgot to change to correct function...
> >
> > try this one
> >
> >
> >
> >
> >
> > On 10/2/07, Felipe Balbi
> <felipebalbi@users.sourceforge.net> wrote:
> > > Hi Luis,
> > >
> > > On 10/2/07, Luís Cargnini < lvcargnini@gmail.com> wrote:
> > > > Dear fellows,
> > > > I had the following problems compiling for omap with omap backlight
> enabled,
> > > > the following error:
> > > > make
> > > > CHK include/linux/version.h
> > > > make[1]: `include/asm-arm/mach-types.h' is up to date.
> > > > CHK include/linux/utsrelease.h
> > > > CALL scripts/checksyscalls.sh
> > > > <stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
> > > > <stdin>:1265:2: warning: #warning syscall migrate_pages not
> implemented
> > > > <stdin>:1321:2: warning: #warning syscall pselect6 not implemented
> > > > <stdin>:1325:2: warning: #warning syscall ppoll not implemented
> > > > <stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
> > > > <stdin>:1385:2: warning: #warning syscall fallocate not implemented
> > > > CHK include/linux/compile.h
> > > > CC [M] drivers/video/backlight/omap_bl.o
> > > > drivers/video/backlight/omap_bl.c: In function
> 'omapbl_suspend':
> > > > drivers/video/backlight/omap_bl.c:79: error: 'struct
> backlight_device' has
> > > > no member named 'class_dev'
> > > > drivers/video/backlight/omap_bl.c: In function
> 'omapbl_resume':
> > > > drivers/video/backlight/omap_bl.c:88: error: 'struct
> backlight_device' has
> > > > no member named 'class_dev'
> > > > drivers/video/backlight/omap_bl.c: In function
> 'omapbl_set_power':
> > > > drivers/video/backlight/omap_bl.c:100: error: 'struct
> backlight_device' has
> > > > no member named 'class_dev'
> > > > drivers/video/backlight/omap_bl.c: In function
> 'omapbl_update_status':
> > > > drivers/video/backlight/omap_bl.c:110: error: 'struct
> backlight_device' has
> > > > no member named 'class_dev'
> > > > drivers/video/backlight/omap_bl.c: In function
> 'omapbl_get_intensity':
> > > > drivers/video/backlight/omap_bl.c:130: error: 'struct
> backlight_device' has
> > > > no member named 'class_dev'
> > > > drivers/video/backlight/omap_bl.c: In function
> 'omapbl_remove':
> > > > drivers/video/backlight/omap_bl.c:185: error: 'struct
> backlight_device' has
> > > > no member named 'class_dev'
> > > > make[3]: *** [drivers/video/backlight/omap_bl.o]
> Error 1
> > > > make[2]: *** [drivers/video/backlight] Error 2
> > > > make[1]: *** [drivers/video] Error 2
> > > > make: *** [drivers] Error 2
> > > >
> > > > looking he source code:
> > > > struct omap_backlight {
> > > > int powermode;
> > > > int current_intensity;
> > > >
> > > > struct device *dev;
> > > > struct omap_backlight_config *pdata;
> > > > };
> > > >
> > > >
> > > > but :
> > > > #ifdef CONFIG_PM
> > > > static int omapbl_suspend(struct platform_device *pdev, pm_message_t
> state)
> > > > {
> > > > struct backlight_device *dev = platform_get_drvdata(pdev);
> > > > struct omap_backlight *bl =
> class_get_devdata(&dev->class_dev);
> > > >
> > > > omapbl_blank(bl, FB_BLANK_POWERDOWN);
> > > > return 0;
> > > > }
> > > >
> > > > someone have figured this problem before ?
> > > > can I make the fix ?
> > > > There is no fix, no problem I'm just creating one ?
> > >
> > > Check if the attached fixes the issue...
> > >
> > > If it works, I'll send a proper formated patch
> > >
> > > >
> > > > --
> > > >
> ------------------------------------------------------------------------------
> > > > Thanks && Regards
> > > > Msc. Bsc. Luís Vitório Cargnini
> > > > IEEE Member
> > > > Electrical Engineer Faculty @ PUCRS
> > > > Ipiranga Avenue, 6681 – Building 30
> > > > P.O. Box: 90619-900 – Porto Alegre/RS
> > > > Phone: +55 51 3320 3500 extension: 7696
> > > >
> ---------------------------------------------------------------------------------
> > > > _______________________________________________
> > > > Linux-omap-open-source mailing list
> > > > Linux-omap-open-source@linux.omap.com
> > > >
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> > > >
> > >
> > >
> > > --
> > > Best Regards,
> > >
> > > Felipe Balbi
> > > felipebalbi@users.sourceforge.net
> > >
> > >
> >
> >
> > --
> > Best Regards,
> >
> > Felipe Balbi
> > felipebalbi@users.sourceforge.net
> >
> >
>
>
>
> --
>
> ------------------------------------------------------------------------------
> Thanks && Regards
> Msc. Bsc. Luís Vitório Cargnini
> IEEE Member
> Electrical Engineer Faculty @ PUCRS
> Ipiranga Avenue, 6681 – Building 30
> P.O. Box: 90619-900 – Porto Alegre/RS
> Phone: +55 51 3320 3500 extension: 7696
> ---------------------------------------------------------------------------------
--
Best Regards,
Felipe Balbi
felipebalbi@users.sourceforge.net
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problems with backlight
2007-10-03 16:54 ` Felipe Balbi
@ 2007-10-03 17:17 ` Luís Cargnini
0 siblings, 0 replies; 8+ messages in thread
From: Luís Cargnini @ 2007-10-03 17:17 UTC (permalink / raw)
To: Felipe Balbi; +Cc: OMAP
oops:
MODPOST 173 modules
ERROR: "tsc2102_coords_cb" [drivers/input/touchscreen/tsc2102_ts.ko]
undefined!
ERROR: "tsc2102_touch_cb" [drivers/input/touchscreen/tsc2102_ts.ko]
undefined!
disabling this.
On 10/3/07, Felipe Balbi <felipebalbi@users.sourceforge.net> wrote:
>
> Hi,
>
> On 10/3/07, Luís Cargnini <lvcargnini@gmail.com> wrote:
> > I applied the patches only now and are compiling the kernel right now
>
> please confirm it's working. I can't test it on OMAP boards right due
> to time issues :-p
>
> >
> >
> > On 10/2/07, Felipe Balbi <felipebalbi@users.sourceforge.net
> > > wrote:
> > > Sorry,
> > >
> > > forgot to change to correct function...
> > >
> > > try this one
> > >
> > >
> > >
> > >
> > >
> > > On 10/2/07, Felipe Balbi
> > <felipebalbi@users.sourceforge.net> wrote:
> > > > Hi Luis,
> > > >
> > > > On 10/2/07, Luís Cargnini < lvcargnini@gmail.com> wrote:
> > > > > Dear fellows,
> > > > > I had the following problems compiling for omap with omap
> backlight
> > enabled,
> > > > > the following error:
> > > > > make
> > > > > CHK include/linux/version.h
> > > > > make[1]: `include/asm-arm/mach-types.h' is up to date.
> > > > > CHK include/linux/utsrelease.h
> > > > > CALL scripts/checksyscalls.sh
> > > > > <stdin>:1097:2: warning: #warning syscall fadvise64 not
> implemented
> > > > > <stdin>:1265:2: warning: #warning syscall migrate_pages not
> > implemented
> > > > > <stdin>:1321:2: warning: #warning syscall pselect6 not implemented
> > > > > <stdin>:1325:2: warning: #warning syscall ppoll not implemented
> > > > > <stdin>:1365:2: warning: #warning syscall epoll_pwait not
> implemented
> > > > > <stdin>:1385:2: warning: #warning syscall fallocate not
> implemented
> > > > > CHK include/linux/compile.h
> > > > > CC [M] drivers/video/backlight/omap_bl.o
> > > > > drivers/video/backlight/omap_bl.c: In function
> > 'omapbl_suspend':
> > > > > drivers/video/backlight/omap_bl.c:79: error: 'struct
> > backlight_device' has
> > > > > no member named 'class_dev'
> > > > > drivers/video/backlight/omap_bl.c: In function
> > 'omapbl_resume':
> > > > > drivers/video/backlight/omap_bl.c:88: error: 'struct
> > backlight_device' has
> > > > > no member named 'class_dev'
> > > > > drivers/video/backlight/omap_bl.c: In function
> > 'omapbl_set_power':
> > > > > drivers/video/backlight/omap_bl.c:100: error: 'struct
> > backlight_device' has
> > > > > no member named 'class_dev'
> > > > > drivers/video/backlight/omap_bl.c: In function
> > 'omapbl_update_status':
> > > > > drivers/video/backlight/omap_bl.c:110: error: 'struct
> > backlight_device' has
> > > > > no member named 'class_dev'
> > > > > drivers/video/backlight/omap_bl.c: In function
> > 'omapbl_get_intensity':
> > > > > drivers/video/backlight/omap_bl.c:130: error: 'struct
> > backlight_device' has
> > > > > no member named 'class_dev'
> > > > > drivers/video/backlight/omap_bl.c: In function
> > 'omapbl_remove':
> > > > > drivers/video/backlight/omap_bl.c:185: error: 'struct
> > backlight_device' has
> > > > > no member named 'class_dev'
> > > > > make[3]: *** [drivers/video/backlight/omap_bl.o]
> > Error 1
> > > > > make[2]: *** [drivers/video/backlight] Error 2
> > > > > make[1]: *** [drivers/video] Error 2
> > > > > make: *** [drivers] Error 2
> > > > >
> > > > > looking he source code:
> > > > > struct omap_backlight {
> > > > > int powermode;
> > > > > int current_intensity;
> > > > >
> > > > > struct device *dev;
> > > > > struct omap_backlight_config *pdata;
> > > > > };
> > > > >
> > > > >
> > > > > but :
> > > > > #ifdef CONFIG_PM
> > > > > static int omapbl_suspend(struct platform_device *pdev,
> pm_message_t
> > state)
> > > > > {
> > > > > struct backlight_device *dev = platform_get_drvdata(pdev);
> > > > > struct omap_backlight *bl =
> > class_get_devdata(&dev->class_dev);
> > > > >
> > > > > omapbl_blank(bl, FB_BLANK_POWERDOWN);
> > > > > return 0;
> > > > > }
> > > > >
> > > > > someone have figured this problem before ?
> > > > > can I make the fix ?
> > > > > There is no fix, no problem I'm just creating one ?
> > > >
> > > > Check if the attached fixes the issue...
> > > >
> > > > If it works, I'll send a proper formated patch
> > > >
> > > > >
> > > > > --
> > > > >
> >
> ------------------------------------------------------------------------------
> > > > > Thanks && Regards
> > > > > Msc. Bsc. Luís Vitório Cargnini
> > > > > IEEE Member
> > > > > Electrical Engineer Faculty @ PUCRS
> > > > > Ipiranga Avenue, 6681 – Building 30
> > > > > P.O. Box: 90619-900 – Porto Alegre/RS
> > > > > Phone: +55 51 3320 3500 extension: 7696
> > > > >
> >
> ---------------------------------------------------------------------------------
> > > > > _______________________________________________
> > > > > Linux-omap-open-source mailing list
> > > > > Linux-omap-open-source@linux.omap.com
> > > > >
> > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> > > > >
> > > >
> > > >
> > > > --
> > > > Best Regards,
> > > >
> > > > Felipe Balbi
> > > > felipebalbi@users.sourceforge.net
> > > >
> > > >
> > >
> > >
> > > --
> > > Best Regards,
> > >
> > > Felipe Balbi
> > > felipebalbi@users.sourceforge.net
> > >
> > >
> >
> >
> >
> > --
> >
> >
> ------------------------------------------------------------------------------
> > Thanks && Regards
> > Msc. Bsc. Luís Vitório Cargnini
> > IEEE Member
> > Electrical Engineer Faculty @ PUCRS
> > Ipiranga Avenue, 6681 – Building 30
> > P.O. Box: 90619-900 – Porto Alegre/RS
> > Phone: +55 51 3320 3500 extension: 7696
> >
> ---------------------------------------------------------------------------------
>
>
> --
> Best Regards,
>
> Felipe Balbi
> felipebalbi@users.sourceforge.net
>
--
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500 extension: 7696
---------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-10-03 17:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 17:57 problems with backlight Luís Cargnini
2007-10-02 18:16 ` David Brownell
-- strict thread matches above, loose matches on Subject: below --
2007-10-02 17:45 Luís Cargnini
2007-10-02 18:03 ` Felipe Balbi
2007-10-02 18:08 ` Felipe Balbi
2007-10-03 16:44 ` Luís Cargnini
2007-10-03 16:54 ` Felipe Balbi
2007-10-03 17:17 ` Luís Cargnini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox