提交 2d51a521 编写于 作者: E Eric Miao

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

Signed-off-by: NEric Miao <eric.y.miao@gmail.com>
上级 548c6af4
...@@ -381,7 +381,7 @@ static int magician_backlight_init(struct device *dev) ...@@ -381,7 +381,7 @@ static int magician_backlight_init(struct device *dev)
return ret; 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); gpio_set_value(EGPIO_MAGICIAN_BL_POWER, brightness);
if (brightness >= 200) { if (brightness >= 200) {
......
...@@ -270,7 +270,7 @@ static int palmld_backlight_init(struct device *dev) ...@@ -270,7 +270,7 @@ static int palmld_backlight_init(struct device *dev)
return ret; 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_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMLD_LCD_POWER, brightness); gpio_set_value(GPIO_NR_PALMLD_LCD_POWER, brightness);
......
...@@ -209,7 +209,7 @@ static int palmt5_backlight_init(struct device *dev) ...@@ -209,7 +209,7 @@ static int palmt5_backlight_init(struct device *dev)
return ret; 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_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMT5_LCD_POWER, brightness); gpio_set_value(GPIO_NR_PALMT5_LCD_POWER, brightness);
......
...@@ -185,7 +185,7 @@ static int palmtc_backlight_init(struct device *dev) ...@@ -185,7 +185,7 @@ static int palmtc_backlight_init(struct device *dev)
return ret; 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 */ /* backlight is on when GPIO16 AF0 is high */
gpio_set_value(GPIO_NR_PALMTC_BL_POWER, brightness); gpio_set_value(GPIO_NR_PALMTC_BL_POWER, brightness);
......
...@@ -181,7 +181,7 @@ static int palmte2_backlight_init(struct device *dev) ...@@ -181,7 +181,7 @@ static int palmte2_backlight_init(struct device *dev)
return ret; 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_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMTE2_LCD_POWER, brightness); gpio_set_value(GPIO_NR_PALMTE2_LCD_POWER, brightness);
......
...@@ -375,7 +375,7 @@ static int treo_backlight_init(struct device *dev) ...@@ -375,7 +375,7 @@ static int treo_backlight_init(struct device *dev)
return ret; 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); gpio_set_value(GPIO_NR_TREO_BL_POWER, brightness);
return TREO_MAX_INTENSITY - brightness; return TREO_MAX_INTENSITY - brightness;
......
...@@ -269,7 +269,7 @@ static int palmtx_backlight_init(struct device *dev) ...@@ -269,7 +269,7 @@ static int palmtx_backlight_init(struct device *dev)
return ret; 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_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMTX_LCD_POWER, brightness); gpio_set_value(GPIO_NR_PALMTX_LCD_POWER, brightness);
......
...@@ -196,7 +196,7 @@ static int palmz72_backlight_init(struct device *dev) ...@@ -196,7 +196,7 @@ static int palmz72_backlight_init(struct device *dev)
return ret; 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_BL_POWER, brightness);
gpio_set_value(GPIO_NR_PALMZ72_LCD_POWER, brightness); gpio_set_value(GPIO_NR_PALMZ72_LCD_POWER, brightness);
......
...@@ -379,7 +379,7 @@ static int viper_backlight_init(struct device *dev) ...@@ -379,7 +379,7 @@ static int viper_backlight_init(struct device *dev)
return ret; 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_LCD_EN_GPIO, !!brightness);
gpio_set_value(VIPER_BCKLIGHT_EN_GPIO, !!brightness); gpio_set_value(VIPER_BCKLIGHT_EN_GPIO, !!brightness);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册