Searched refs:smchip (Results 1 – 1 of 1) sorted by relevance
899 static void sm501_gpio_ensure_gpio(struct sm501_gpio_chip *smchip, in sm501_gpio_ensure_gpio() argument906 if (smc501_readl(smchip->control) & bit) { in sm501_gpio_ensure_gpio()907 dev_info(sm501_gpio_to_dev(smchip->ourgpio)->dev, in sm501_gpio_ensure_gpio()910 ctrl = smc501_readl(smchip->control); in sm501_gpio_ensure_gpio()912 smc501_writel(ctrl, smchip->control); in sm501_gpio_ensure_gpio()914 sm501_sync_regs(sm501_gpio_to_dev(smchip->ourgpio)); in sm501_gpio_ensure_gpio()921 struct sm501_gpio_chip *smchip = gpiochip_get_data(chip); in sm501_gpio_set() local922 struct sm501_gpio *smgpio = smchip->ourgpio; in sm501_gpio_set()924 void __iomem *regs = smchip->regbase; in sm501_gpio_set()939 sm501_gpio_ensure_gpio(smchip, bit); in sm501_gpio_set()[all …]