static int mipi_lgit_backlight_level(int level, int max, int min) { #ifdef CONFIG_BACKLIGHT_LM3530 lm3530_lcd_backlight_set_level(level); #endif return 0; }
static ssize_t lcd_backlight_store_level(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { int level; if (!count) return -EINVAL; level = simple_strtoul(buf, NULL, 10); lm3530_lcd_backlight_set_level(level); return count; }
static int bl_set_intensity(struct backlight_device *bd) { struct i2c_client *client = lm3530_i2c_client; struct lm3530_device *dev = i2c_get_clientdata(client); int brightness = bd->props.brightness; if ((bd->props.state & BL_CORE_FBBLANK) || (bd->props.state & BL_CORE_SUSPENDED)) brightness = 0; else if (brightness == 0) brightness = dev->default_brightness; lm3530_lcd_backlight_set_level(brightness); return 0; }
static int mipi_lgit_backlight_level(int level, int max, int min) { lm3530_lcd_backlight_set_level(level); return 0; }
static int bl_set_intensity(struct backlight_device *bd) { lm3530_lcd_backlight_set_level(bd->props.brightness); return 0; }