Lines Matching refs:bd
79 static int bd6107_write(struct bd6107 *bd, u8 reg, u8 data) in bd6107_write() argument
81 return i2c_smbus_write_byte_data(bd->client, reg, data); in bd6107_write()
86 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_update_status() local
95 bd6107_write(bd, BD6107_PORTSEL, BD6107_PORTSEL_LEDM(2) | in bd6107_backlight_update_status()
97 bd6107_write(bd, BD6107_MAINCNT1, brightness); in bd6107_backlight_update_status()
98 bd6107_write(bd, BD6107_LEDCNT1, BD6107_LEDCNT1_LEDONOFF1); in bd6107_backlight_update_status()
100 gpio_set_value(bd->pdata->reset, 0); in bd6107_backlight_update_status()
102 gpio_set_value(bd->pdata->reset, 1); in bd6107_backlight_update_status()
111 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_check_fb() local
113 return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->dev; in bd6107_backlight_check_fb()
128 struct bd6107 *bd; in bd6107_probe() local
143 bd = devm_kzalloc(&client->dev, sizeof(*bd), GFP_KERNEL); in bd6107_probe()
144 if (!bd) in bd6107_probe()
147 bd->client = client; in bd6107_probe()
148 bd->pdata = pdata; in bd6107_probe()
165 &bd->client->dev, bd, in bd6107_probe()