Lines Matching refs:g
132 struct bd71815_gpio *g; in gpo_bd71815_probe() local
143 g = devm_kzalloc(dev, sizeof(*g), GFP_KERNEL); in gpo_bd71815_probe()
144 if (!g) in gpo_bd71815_probe()
147 g->chip = bd71815gpo_chip; in gpo_bd71815_probe()
160 g->chip.ngpio = 2; in gpo_bd71815_probe()
162 g->chip.ngpio = 1; in gpo_bd71815_probe()
164 g->chip.init_valid_mask = bd71815_init_valid_mask; in gpo_bd71815_probe()
165 g->chip.base = -1; in gpo_bd71815_probe()
166 g->chip.parent = parent; in gpo_bd71815_probe()
167 g->regmap = dev_get_regmap(parent, NULL); in gpo_bd71815_probe()
168 g->dev = dev; in gpo_bd71815_probe()
170 return devm_gpiochip_add_data(dev, &g->chip, g); in gpo_bd71815_probe()