Symbol: tps65217_bl
drivers/video/backlight/tps65217_bl.c
100
static int tps65217_bl_hw_init(struct tps65217_bl *tps65217_bl,
drivers/video/backlight/tps65217_bl.c
105
rc = tps65217_bl_disable(tps65217_bl);
drivers/video/backlight/tps65217_bl.c
112
rc = tps65217_clear_bits(tps65217_bl->tps,
drivers/video/backlight/tps65217_bl.c
117
dev_err(tps65217_bl->dev,
drivers/video/backlight/tps65217_bl.c
123
dev_dbg(tps65217_bl->dev, "selected ISET1 current level\n");
drivers/video/backlight/tps65217_bl.c
129
rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1,
drivers/video/backlight/tps65217_bl.c
133
dev_err(tps65217_bl->dev,
drivers/video/backlight/tps65217_bl.c
139
dev_dbg(tps65217_bl->dev, "selected ISET2 current level\n");
drivers/video/backlight/tps65217_bl.c
144
dev_err(tps65217_bl->dev,
drivers/video/backlight/tps65217_bl.c
150
rc = tps65217_set_bits(tps65217_bl->tps,
drivers/video/backlight/tps65217_bl.c
156
dev_err(tps65217_bl->dev,
drivers/video/backlight/tps65217_bl.c
256
struct tps65217_bl *tps65217_bl;
drivers/video/backlight/tps65217_bl.c
26
static int tps65217_bl_enable(struct tps65217_bl *tps65217_bl)
drivers/video/backlight/tps65217_bl.c
264
tps65217_bl = devm_kzalloc(&pdev->dev, sizeof(*tps65217_bl),
drivers/video/backlight/tps65217_bl.c
266
if (tps65217_bl == NULL)
drivers/video/backlight/tps65217_bl.c
269
tps65217_bl->tps = tps;
drivers/video/backlight/tps65217_bl.c
270
tps65217_bl->dev = &pdev->dev;
drivers/video/backlight/tps65217_bl.c
271
tps65217_bl->is_enabled = false;
drivers/video/backlight/tps65217_bl.c
273
rc = tps65217_bl_hw_init(tps65217_bl, pdata);
drivers/video/backlight/tps65217_bl.c
281
tps65217_bl->bl = devm_backlight_device_register(&pdev->dev, pdev->name,
drivers/video/backlight/tps65217_bl.c
282
tps65217_bl->dev, tps65217_bl,
drivers/video/backlight/tps65217_bl.c
284
if (IS_ERR(tps65217_bl->bl)) {
drivers/video/backlight/tps65217_bl.c
285
dev_err(tps65217_bl->dev,
drivers/video/backlight/tps65217_bl.c
287
return PTR_ERR(tps65217_bl->bl);
drivers/video/backlight/tps65217_bl.c
290
tps65217_bl->bl->props.brightness = pdata->dft_brightness;
drivers/video/backlight/tps65217_bl.c
291
backlight_update_status(tps65217_bl->bl);
drivers/video/backlight/tps65217_bl.c
292
platform_set_drvdata(pdev, tps65217_bl);
drivers/video/backlight/tps65217_bl.c
30
rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1,
drivers/video/backlight/tps65217_bl.c
34
dev_err(tps65217_bl->dev,
drivers/video/backlight/tps65217_bl.c
39
tps65217_bl->is_enabled = true;
drivers/video/backlight/tps65217_bl.c
41
dev_dbg(tps65217_bl->dev, "backlight enabled\n");
drivers/video/backlight/tps65217_bl.c
46
static int tps65217_bl_disable(struct tps65217_bl *tps65217_bl)
drivers/video/backlight/tps65217_bl.c
50
rc = tps65217_clear_bits(tps65217_bl->tps,
drivers/video/backlight/tps65217_bl.c
55
dev_err(tps65217_bl->dev,
drivers/video/backlight/tps65217_bl.c
60
tps65217_bl->is_enabled = false;
drivers/video/backlight/tps65217_bl.c
62
dev_dbg(tps65217_bl->dev, "backlight disabled\n");
drivers/video/backlight/tps65217_bl.c
69
struct tps65217_bl *tps65217_bl = bl_get_data(bl);
drivers/video/backlight/tps65217_bl.c
74
rc = tps65217_reg_write(tps65217_bl->tps,
drivers/video/backlight/tps65217_bl.c
79
dev_err(tps65217_bl->dev,
drivers/video/backlight/tps65217_bl.c
84
dev_dbg(tps65217_bl->dev, "brightness set to %d\n", brightness);
drivers/video/backlight/tps65217_bl.c
86
if (!tps65217_bl->is_enabled)
drivers/video/backlight/tps65217_bl.c
87
rc = tps65217_bl_enable(tps65217_bl);
drivers/video/backlight/tps65217_bl.c
89
rc = tps65217_bl_disable(tps65217_bl);