Lines Matching refs:mm_gc
922 * @mm_gc: pointer to the of_mm_gpio_chip allocated structure
925 * To use this function you should allocate and fill mm_gc with:
940 struct of_mm_gpio_chip *mm_gc,
944 struct gpio_chip *gc = &mm_gc->gc;
950 mm_gc->regs = of_iomap(np, 0);
951 if (!mm_gc->regs)
956 if (mm_gc->save_regs)
957 mm_gc->save_regs(mm_gc);
959 fwnode_handle_put(mm_gc->gc.fwnode);
960 mm_gc->gc.fwnode = fwnode_handle_get(of_fwnode_handle(np));
969 iounmap(mm_gc->regs);
980 * @mm_gc: pointer to the of_mm_gpio_chip allocated structure
982 void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc)
984 struct gpio_chip *gc = &mm_gc->gc;
987 iounmap(mm_gc->regs);