Searched refs:smchip (Results 1 – 1 of 1) sorted by relevance
912 static void sm501_gpio_ensure_gpio(struct sm501_gpio_chip *smchip, in sm501_gpio_ensure_gpio() argument919 if (smc501_readl(smchip->control) & bit) { in sm501_gpio_ensure_gpio()920 dev_info(sm501_gpio_to_dev(smchip->ourgpio)->dev, in sm501_gpio_ensure_gpio()923 ctrl = smc501_readl(smchip->control); in sm501_gpio_ensure_gpio()925 smc501_writel(ctrl, smchip->control); in sm501_gpio_ensure_gpio()927 sm501_sync_regs(sm501_gpio_to_dev(smchip->ourgpio)); in sm501_gpio_ensure_gpio()934 struct sm501_gpio_chip *smchip = to_sm501_gpio(chip); in sm501_gpio_set() local935 struct sm501_gpio *smgpio = smchip->ourgpio; in sm501_gpio_set()937 void __iomem *regs = smchip->regbase; in sm501_gpio_set()952 sm501_gpio_ensure_gpio(smchip, bit); in sm501_gpio_set()[all …]