Lines Matching refs:bd
77 static int bd6107_write(struct bd6107 *bd, u8 reg, u8 data) in bd6107_write() argument
79 return i2c_smbus_write_byte_data(bd->client, reg, data); in bd6107_write()
84 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_update_status() local
88 bd6107_write(bd, BD6107_PORTSEL, BD6107_PORTSEL_LEDM(2) | in bd6107_backlight_update_status()
90 bd6107_write(bd, BD6107_MAINCNT1, brightness); in bd6107_backlight_update_status()
91 bd6107_write(bd, BD6107_LEDCNT1, BD6107_LEDCNT1_LEDONOFF1); in bd6107_backlight_update_status()
94 gpiod_set_value(bd->reset, 1); in bd6107_backlight_update_status()
96 gpiod_set_value(bd->reset, 0); in bd6107_backlight_update_status()
105 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_check_fb() local
107 return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->dev; in bd6107_backlight_check_fb()
122 struct bd6107 *bd; in bd6107_probe() local
137 bd = devm_kzalloc(&client->dev, sizeof(*bd), GFP_KERNEL); in bd6107_probe()
138 if (!bd) in bd6107_probe()
141 bd->client = client; in bd6107_probe()
142 bd->pdata = pdata; in bd6107_probe()
150 bd->reset = devm_gpiod_get(&client->dev, "reset", GPIOD_OUT_HIGH); in bd6107_probe()
151 if (IS_ERR(bd->reset)) { in bd6107_probe()
153 ret = PTR_ERR(bd->reset); in bd6107_probe()
165 &bd->client->dev, bd, in bd6107_probe()