Re: [PATCH] backlight control for Frontpath ProGear HX1050+

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Richard Purdie
Date: Tuesday, February 6, 2007 - 12:26 pm

On Tue, 2007-02-06 at 14:30 +0100, Marcin Juszkiewicz wrote:

This is very similar to corgi_bl which I have some changes I was
considering to make it a bit more efficient/clean. The same changes
could apply to this driver:


Not sure you need the above line?


You shouldn't need this structure pointer (see below)


Can you read PMU_LPCR and return it (minus HW_LEVEL_MIN) here? corgi_bl
only stores this as it can't read back from the hardware. Either
approach is probably ok (although if the register can be updated by
other means, it should be read).


You can use progearbl_send_intensity(bd); here or maybe lose the
function all together?


progearbl_send_intensity?


platform_set_drvdata(pdev, progear_backlight_device);


struct backlight_device *bd = platform_get_drvdata(pdev);
backlight_device_unregister(bd);


All pretty minor though and if you change the above, it can have an

Acked-by: Richard Purdie <rpurdie@rpsys.net>

-- 
Richard


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] backlight control for Frontpath ProGear HX1050+, Marcin Juszkiewicz, (Tue Feb 6, 6:30 am)
Re: [PATCH] backlight control for Frontpath ProGear HX1050+, Richard Purdie, (Tue Feb 6, 12:26 pm)
Re: [PATCH] backlight control for Frontpath ProGear HX1050+, Marcin Juszkiewicz, (Wed Feb 7, 1:02 am)