From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?ISO-8859-1?Q?Lu=EDs_Cargnini?=" Subject: problems with backlight Date: Tue, 2 Oct 2007 14:57:07 -0300 Message-ID: Reply-To: lvcargnini@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: OMAP List-Id: linux-omap@vger.kernel.org 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 :1097:2: warning: #warning syscall fadvise64 not implemented :1265:2: warning: #warning syscall migrate_pages not implemented :1321:2: warning: #warning syscall pselect6 not implemented :1325:2: warning: #warning syscall ppoll not implemented :1365:2: warning: #warning syscall epoll_pwait not implemented :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 =3D platform_get_drvdata(pdev); struct omap_backlight *bl =3D 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 ? --=20 ---------------------------------------------------------------------------= --- Thanks && Regards Msc. Bsc. Lu=EDs Vit=F3rio Cargnini IEEE Member Electrical Engineer Faculty @ PUCRS Ipiranga Avenue, 6681 =96 Building 30 P.O. Box: 90619-900 =96 Porto Alegre/RS Phone: +55 51 3320 3500 extension: 7696 ---------------------------------------------------------------------------= ------