backlight: Pass device through notify callback in the pwm driver

Add the device to the notify callback's arguments in the PWM backlight 
driver. This brings the notify callback into line with the other 
callbacks defined by this driver.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Simtec Linux Team <linux@simtec.co.uk>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Ben Dooks
2009-11-10 17:20:40 +00:00
committed by Richard Purdie
parent 5b0582ea42
commit cfc3899fcd
2 changed files with 7 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ struct platform_pwm_backlight_data {
unsigned int dft_brightness;
unsigned int pwm_period_ns;
int (*init)(struct device *dev);
int (*notify)(int brightness);
int (*notify)(struct device *dev, int brightness);
void (*exit)(struct device *dev);
};