Commit 2d51a521 authored by Eric Miao's avatar Eric Miao

[ARM] pxa: update pwm_backlight->notify() to include missed 'struct device *'

Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
parent 548c6af4
......@@ -381,7 +381,7 @@ static int magician_backlight_init(struct device *dev)
return ret;
}
static int magician_backlight_notify(int brightness)
static int magician_backlight_notify(struct device *dev, int brightness)
{
gpio_set_value(EGPIO_MAGICIAN_BL_POWER, brightness);
if (brightness >= 200) {
......
......@@ -270,7 +270,7 @@ static int palmld_backlight_init(struct device *dev)
return ret;
}
static int palmld_backlight_notify(int brightness)
static int palmld_backlight_notify(struct device *dev, int brightness)
{
gpio_set_value(GPIO_NR_PALMLD_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMLD_LCD_POWER, brightness);
......
......@@ -209,7 +209,7 @@ static int palmt5_backlight_init(struct device *dev)
return ret;
}
static int palmt5_backlight_notify(int brightness)
static int palmt5_backlight_notify(struct device *dev, int brightness)
{
gpio_set_value(GPIO_NR_PALMT5_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMT5_LCD_POWER, brightness);
......
......@@ -185,7 +185,7 @@ static int palmtc_backlight_init(struct device *dev)
return ret;
}
static int palmtc_backlight_notify(int brightness)
static int palmtc_backlight_notify(struct device *dev, int brightness)
{
/* backlight is on when GPIO16 AF0 is high */
gpio_set_value(GPIO_NR_PALMTC_BL_POWER, brightness);
......
......@@ -181,7 +181,7 @@ static int palmte2_backlight_init(struct device *dev)
return ret;
}
static int palmte2_backlight_notify(int brightness)
static int palmte2_backlight_notify(struct device *dev, int brightness)
{
gpio_set_value(GPIO_NR_PALMTE2_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMTE2_LCD_POWER, brightness);
......
......@@ -375,7 +375,7 @@ static int treo_backlight_init(struct device *dev)
return ret;
}
static int treo_backlight_notify(int brightness)
static int treo_backlight_notify(struct device *dev, int brightness)
{
gpio_set_value(GPIO_NR_TREO_BL_POWER, brightness);
return TREO_MAX_INTENSITY - brightness;
......
......@@ -269,7 +269,7 @@ static int palmtx_backlight_init(struct device *dev)
return ret;
}
static int palmtx_backlight_notify(int brightness)
static int palmtx_backlight_notify(struct device *dev, int brightness)
{
gpio_set_value(GPIO_NR_PALMTX_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMTX_LCD_POWER, brightness);
......
......@@ -196,7 +196,7 @@ static int palmz72_backlight_init(struct device *dev)
return ret;
}
static int palmz72_backlight_notify(int brightness)
static int palmz72_backlight_notify(struct device *dev, int brightness)
{
gpio_set_value(GPIO_NR_PALMZ72_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMZ72_LCD_POWER, brightness);
......
......@@ -379,7 +379,7 @@ static int viper_backlight_init(struct device *dev)
return ret;
}
static int viper_backlight_notify(int brightness)
static int viper_backlight_notify(struct device *dev, int brightness)
{
gpio_set_value(VIPER_LCD_EN_GPIO, !!brightness);
gpio_set_value(VIPER_BCKLIGHT_EN_GPIO, !!brightness);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment