/drivers/staging/cptm1217/ |
H A D | cp_tm1217.h | 5 int gpio; /* If not set uses the IRQ resource 0 */ member in struct:cp_tm1217_platform_data
|
/drivers/gpio/ |
H A D | Makefile | 1 # generic gpio support: platform drivers, dedicated expander chips, etc 13 obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o 15 obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o 16 obj-$(CONFIG_GPIO_ADNP) += gpio-adnp.o 17 obj-$(CONFIG_GPIO_ADP5520) += gpio-adp5520.o 18 obj-$(CONFIG_GPIO_ADP5588) += gpio-adp5588.o 19 obj-$(CONFIG_GPIO_AMD8111) += gpio-amd8111.o 20 obj-$(CONFIG_GPIO_ARIZONA) += gpio-arizona.o 21 obj-$(CONFIG_GPIO_BCM_KONA) += gpio-bcm-kona.o 22 obj-$(CONFIG_GPIO_BT8XX) += gpio [all...] |
H A D | gpio-pcf857x.c | 21 #include <linux/gpio.h> 95 unsigned irq_mapped; /* mapped gpio irqs */ 141 struct pcf857x *gpio = container_of(chip, struct pcf857x, chip); local 144 mutex_lock(&gpio->lock); 145 gpio->out |= (1 << offset); 146 status = gpio->write(gpio->client, gpio->out); 147 mutex_unlock(&gpio->lock); 154 struct pcf857x *gpio local 163 struct pcf857x *gpio = container_of(chip, struct pcf857x, chip); local 187 struct pcf857x *gpio = container_of(chip, struct pcf857x, chip); local 199 struct pcf857x *gpio = data; local 224 struct pcf857x *gpio = domain->host_data; local 243 pcf857x_irq_domain_cleanup(struct pcf857x *gpio) argument 250 pcf857x_irq_domain_init(struct pcf857x *gpio, struct i2c_client *client) argument 288 struct pcf857x *gpio; local 430 struct pcf857x *gpio = i2c_get_clientdata(client); local [all...] |
H A D | gpiolib-legacy.c | 1 #include <linux/gpio/consumer.h> 2 #include <linux/gpio/driver.h> 4 #include <linux/gpio.h> 8 void gpio_free(unsigned gpio) argument 10 gpiod_free(gpio_to_desc(gpio)); 16 * @gpio: the GPIO number 20 int gpio_request_one(unsigned gpio, unsigned long flags, const char *label) argument 25 desc = gpio_to_desc(gpio); 63 int gpio_request(unsigned gpio, const char *label) argument 65 return gpiod_request(gpio_to_desc(gpio), labe [all...] |
H A D | gpio-da9055.c | 16 #include <linux/gpio.h> 45 struct da9055_gpio *gpio = to_da9055_gpio(gc); local 50 ret = da9055_reg_read(gpio->da9055, (offset >> 1) + DA9055_REG_GPIO0_1); 58 ret = da9055_reg_read(gpio->da9055, DA9055_REG_STATUS_B); 63 ret = da9055_reg_read(gpio->da9055, DA9055_REG_GPIO_MODE0_2); 74 struct da9055_gpio *gpio = to_da9055_gpio(gc); local 76 da9055_reg_update(gpio->da9055, 84 struct da9055_gpio *gpio = to_da9055_gpio(gc); local 90 return da9055_reg_update(gpio->da9055, (offset >> 1) + 100 struct da9055_gpio *gpio local 122 struct da9055_gpio *gpio = to_da9055_gpio(gc); local 144 struct da9055_gpio *gpio; local 175 struct da9055_gpio *gpio = platform_get_drvdata(pdev); local [all...] |
H A D | gpio-dwapb.c | 24 #include <linux/platform_data/gpio-dwapb.h> 71 struct dwapb_gpio *gpio; member in struct:dwapb_gpio_port 92 static inline u32 dwapb_read(struct dwapb_gpio *gpio, unsigned int offset) argument 94 struct bgpio_chip *bgc = &gpio->ports[0].bgc; 95 void __iomem *reg_base = gpio->regs; 100 static inline void dwapb_write(struct dwapb_gpio *gpio, unsigned int offset, argument 103 struct bgpio_chip *bgc = &gpio->ports[0].bgc; 104 void __iomem *reg_base = gpio->regs; 113 struct dwapb_gpio *gpio = port->gpio; local 118 dwapb_toggle_trigger(struct dwapb_gpio *gpio, unsigned int offs) argument 130 dwapb_do_irq(struct dwapb_gpio *gpio) argument 152 struct dwapb_gpio *gpio = irq_get_handler_data(irq); local 164 struct dwapb_gpio *gpio = igc->private; local 179 struct dwapb_gpio *gpio = igc->private; local 194 struct dwapb_gpio *gpio = igc->private; local 208 struct dwapb_gpio *gpio = igc->private; local 217 struct dwapb_gpio *gpio = igc->private; local 267 struct dwapb_gpio *gpio = port->gpio; local 287 struct dwapb_gpio *gpio = dev_id; local 294 dwapb_configure_irqs(struct dwapb_gpio *gpio, struct dwapb_gpio_port *port, struct dwapb_port_property *pp) argument 375 dwapb_irq_teardown(struct dwapb_gpio *gpio) argument 392 dwapb_gpio_add_port(struct dwapb_gpio *gpio, struct dwapb_port_property *pp, unsigned int offs) argument 446 dwapb_gpio_unregister(struct dwapb_gpio *gpio) argument 539 struct dwapb_gpio *gpio; local 600 struct dwapb_gpio *gpio = platform_get_drvdata(pdev); local 618 struct dwapb_gpio *gpio = platform_get_drvdata(pdev); local 660 struct dwapb_gpio *gpio = platform_get_drvdata(pdev); local [all...] |
H A D | gpio-crystalcove.c | 2 * gpio-crystalcove.c - Intel Crystal Cove GPIO Driver 20 #include <linux/gpio.h> 92 static inline int to_reg(int gpio, enum ctrl_register reg_type) argument 97 if (gpio < 8) 102 if (gpio < 8) 108 return reg + gpio % 8; 112 int gpio) 114 u8 mirqs0 = gpio < 8 ? MGPIO0IRQS0 : MGPIO1IRQS0; 115 int mask = BIT(gpio % 8); 123 static void crystalcove_update_irq_ctrl(struct crystalcove_gpio *cg, int gpio) argument 111 crystalcove_update_irq_mask(struct crystalcove_gpio *cg, int gpio) argument 130 crystalcove_gpio_dir_in(struct gpio_chip *chip, unsigned gpio) argument 141 crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned gpio, int value) argument 153 crystalcove_gpio_get(struct gpio_chip *chip, unsigned gpio) argument 169 crystalcove_gpio_set(struct gpio_chip *chip, unsigned gpio, int value) argument 219 int gpio = data->hwirq; local 260 int gpio; local 286 int gpio, offset; local [all...] |
/drivers/bcma/ |
H A D | driver_gpio.c | 11 #include <linux/gpio.h> 22 return container_of(chip, struct bcma_drv_cc, gpio); 25 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) argument 29 return !!bcma_chipco_gpio_in(cc, 1 << gpio); 32 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, argument 37 bcma_chipco_gpio_out(cc, 1 << gpio, value ? 1 << gpio : 0); 40 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) argument 44 bcma_chipco_gpio_outen(cc, 1 << gpio, 0); 48 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, argument 58 bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) argument 71 bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) argument 80 bcma_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) argument 93 int gpio = irqd_to_hwirq(d); local 103 int gpio = irqd_to_hwirq(d); local 121 int gpio; local 136 int gpio, hwirq, err; local 180 int gpio; local [all...] |
/drivers/ssb/ |
H A D | driver_gpio.c | 11 #include <linux/gpio.h> 27 return container_of(chip, struct ssb_bus, gpio); 31 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) argument 36 return irq_find_mapping(bus->irq_domain, gpio); 46 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned gpio) argument 50 return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); 53 static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned gpio, argument 58 ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); 62 unsigned gpio) 61 ssb_gpio_chipco_direction_input(struct gpio_chip *chip, unsigned gpio) argument 70 ssb_gpio_chipco_direction_output(struct gpio_chip *chip, unsigned gpio, int value) argument 80 ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned gpio) argument 93 ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned gpio) argument 105 int gpio = irqd_to_hwirq(d); local 113 int gpio = irqd_to_hwirq(d); local 134 int gpio; local 150 int gpio, hwirq, err; local 195 int gpio; local 264 ssb_gpio_extif_get_value(struct gpio_chip *chip, unsigned gpio) argument 271 ssb_gpio_extif_set_value(struct gpio_chip *chip, unsigned gpio, int value) argument 279 ssb_gpio_extif_direction_input(struct gpio_chip *chip, unsigned gpio) argument 288 ssb_gpio_extif_direction_output(struct gpio_chip *chip, unsigned gpio, int value) argument 302 int gpio = irqd_to_hwirq(d); local 310 int gpio = irqd_to_hwirq(d); local 331 int gpio; local 347 int gpio, hwirq, err; local 391 int gpio; local [all...] |
/drivers/gpu/drm/nouveau/core/subdev/gpio/ |
H A D | base.c | 26 #include <subdev/bios/gpio.h> 31 nouveau_gpio_drive(struct nouveau_gpio *gpio, argument 34 const struct nouveau_gpio_impl *impl = (void *)nv_object(gpio)->oclass; 35 return impl->drive ? impl->drive(gpio, line, dir, out) : -ENODEV; 39 nouveau_gpio_sense(struct nouveau_gpio *gpio, int idx, int line) argument 41 const struct nouveau_gpio_impl *impl = (void *)nv_object(gpio)->oclass; 42 return impl->sense ? impl->sense(gpio, line) : -ENODEV; 46 nouveau_gpio_find(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line, argument 49 struct nouveau_bios *bios = nouveau_bios(gpio); 61 if (nv_device_match(nv_object(gpio), 77 nouveau_gpio_set(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line, int state) argument 93 nouveau_gpio_get(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line) argument 111 struct nouveau_gpio *gpio = container_of(event, typeof(*gpio), event); local 119 struct nouveau_gpio *gpio = container_of(event, typeof(*gpio), event); local 141 struct nouveau_gpio *gpio = nouveau_gpio(subdev); local 167 struct nouveau_gpio *gpio = nouveau_gpio(object); local 190 struct nouveau_gpio *gpio = nouveau_gpio(object); local 206 struct nouveau_gpio *gpio = (void *)object; local 218 struct nouveau_gpio *gpio; local 246 struct nouveau_gpio *gpio; local [all...] |
H A D | nv94.c | 28 nv94_gpio_intr_stat(struct nouveau_gpio *gpio, u32 *hi, u32 *lo) argument 30 u32 intr0 = nv_rd32(gpio, 0x00e054); 31 u32 intr1 = nv_rd32(gpio, 0x00e074); 32 u32 stat0 = nv_rd32(gpio, 0x00e050) & intr0; 33 u32 stat1 = nv_rd32(gpio, 0x00e070) & intr1; 36 nv_wr32(gpio, 0x00e054, intr0); 37 nv_wr32(gpio, 0x00e074, intr1); 41 nv94_gpio_intr_mask(struct nouveau_gpio *gpio, u32 type, u32 mask, u32 data) argument 43 u32 inte0 = nv_rd32(gpio, 0x00e050); 44 u32 inte1 = nv_rd32(gpio, [all...] |
H A D | nve0.c | 28 nve0_gpio_intr_stat(struct nouveau_gpio *gpio, u32 *hi, u32 *lo) argument 30 u32 intr0 = nv_rd32(gpio, 0x00dc00); 31 u32 intr1 = nv_rd32(gpio, 0x00dc80); 32 u32 stat0 = nv_rd32(gpio, 0x00dc08) & intr0; 33 u32 stat1 = nv_rd32(gpio, 0x00dc88) & intr1; 36 nv_wr32(gpio, 0x00dc00, intr0); 37 nv_wr32(gpio, 0x00dc80, intr1); 41 nve0_gpio_intr_mask(struct nouveau_gpio *gpio, u32 type, u32 mask, u32 data) argument 43 u32 inte0 = nv_rd32(gpio, 0x00dc08); 44 u32 inte1 = nv_rd32(gpio, [all...] |
H A D | nv50.c | 28 nv50_gpio_reset(struct nouveau_gpio *gpio, u8 match) argument 30 struct nouveau_bios *bios = nouveau_bios(gpio); 51 gpio->set(gpio, 0, func, line, defs); 53 nv_mask(gpio, reg, 0x00010001 << lsh, val << lsh); 71 nv50_gpio_drive(struct nouveau_gpio *gpio, int line, int dir, int out) argument 78 nv_mask(gpio, reg, 3 << shift, (((dir ^ 1) << 1) | out) << shift); 83 nv50_gpio_sense(struct nouveau_gpio *gpio, int line) argument 90 return !!(nv_rd32(gpio, reg) & (4 << shift)); 94 nv50_gpio_intr_stat(struct nouveau_gpio *gpio, u3 argument 104 nv50_gpio_intr_mask(struct nouveau_gpio *gpio, u32 type, u32 mask, u32 data) argument [all...] |
H A D | nvd0.c | 28 nvd0_gpio_reset(struct nouveau_gpio *gpio, u8 match) argument 30 struct nouveau_bios *bios = nouveau_bios(gpio); 47 gpio->set(gpio, 0, func, line, defs); 49 nv_mask(gpio, 0x00d610 + (line * 4), 0xff, unk0); 51 nv_mask(gpio, 0x00d740 + (unk1 * 4), 0xff, line); 56 nvd0_gpio_drive(struct nouveau_gpio *gpio, int line, int dir, int out) argument 59 nv_mask(gpio, 0x00d610 + (line * 4), 0x00003000, data); 60 nv_mask(gpio, 0x00d604, 0x00000001, 0x00000001); /* update? */ 65 nvd0_gpio_sense(struct nouveau_gpio *gpio, in argument [all...] |
/drivers/net/wireless/ath/ath5k/ |
H A D | gpio.c | 103 * @gpio: GPIO pin to set as input 106 ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) argument 108 if (gpio >= AR5K_NUM_GPIO) 112 (ath5k_hw_reg_read(ah, AR5K_GPIOCR) & ~AR5K_GPIOCR_OUT(gpio)) 113 | AR5K_GPIOCR_IN(gpio), AR5K_GPIOCR); 121 * @gpio: The GPIO pin to set as output 124 ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) argument 126 if (gpio >= AR5K_NUM_GPIO) 130 (ath5k_hw_reg_read(ah, AR5K_GPIOCR) & ~AR5K_GPIOCR_OUT(gpio)) 131 | AR5K_GPIOCR_OUT(gpio), AR5K_GPIOC 142 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) argument 159 ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val) argument 189 ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, u32 interrupt_level) argument [all...] |
H A D | rfkill.c | 41 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill disable (gpio:%d polarity:%d)\n", 42 ah->rf_kill.gpio, ah->rf_kill.polarity); 43 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); 44 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, !ah->rf_kill.polarity); 50 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill enable (gpio:%d polarity:%d)\n", 51 ah->rf_kill.gpio, ah->rf_kill.polarity); 52 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); 53 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, ah->rf_kill.polarity); 60 ath5k_hw_set_gpio_input(ah, ah->rf_kill.gpio); 61 curval = ath5k_hw_get_gpio(ah, ah->rf_kill.gpio); [all...] |
/drivers/gpu/drm/nouveau/core/subdev/volt/ |
H A D | gpio.c | 26 #include <subdev/gpio.h> 27 #include <subdev/bios/gpio.h> 37 struct nouveau_gpio *gpio = nouveau_gpio(volt); local 43 int ret = gpio->get(gpio, 0, tags[i], 0xff); 56 struct nouveau_gpio *gpio = nouveau_gpio(volt); local 61 int ret = gpio->set(gpio, 0, tags[i], 0xff, vid & 1); 73 struct nouveau_gpio *gpio = nouveau_gpio(volt); local 77 /* check we have gpio functio [all...] |
/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | led.c | 3 #include <linux/gpio.h> 21 if (wl->radio_led.gpio == -1) 28 gpio_set_value(wl->radio_led.gpio, 1); 30 gpio_set_value(wl->radio_led.gpio, 0); 47 if (wl->radio_led.gpio != -1) 48 gpio_free(wl->radio_led.gpio); 57 struct gpio_chip *bcma_gpio = &cc_drv->gpio; 63 unsigned gpio = -1; local 67 radio_led->gpio = -1; 77 gpio [all...] |
/drivers/pinctrl/ |
H A D | pinctrl-coh901.c | 18 #include <linux/gpio.h> 62 struct u300_gpio *gpio; member in struct:u300_gpio_port 87 * Macro to expand to read a specific register found in the "gpio" 88 * struct. It requires the struct u300_gpio *gpio variable to exist in 94 (gpio->base + (pin >> 3) * gpio->stride + gpio->reg) 97 * Provides a bitmask for a specific gpio pin inside an 8-bit GPIO 213 * @chip: the gpio chip member of the structure u300_gpio 226 int gpio local 233 int gpio = chip->base + offset; local 240 struct u300_gpio *gpio = to_u300_gpio(chip); local 247 struct u300_gpio *gpio = to_u300_gpio(chip); local 264 struct u300_gpio *gpio = to_u300_gpio(chip); local 280 struct u300_gpio *gpio = to_u300_gpio(chip); local 311 struct u300_gpio *gpio = to_u300_gpio(chip); local 369 struct u300_gpio *gpio = to_u300_gpio(chip); local 428 u300_toggle_trigger(struct u300_gpio *gpio, unsigned offset) argument 450 struct u300_gpio *gpio = to_u300_gpio(chip); local 487 struct u300_gpio *gpio = to_u300_gpio(chip); local 504 struct u300_gpio *gpio = to_u300_gpio(chip); local 526 struct u300_gpio *gpio = to_u300_gpio(chip); local 563 u300_gpio_init_pin(struct u300_gpio *gpio, int offset, const struct u300_gpio_confdata *conf) argument 595 u300_gpio_init_coh901571(struct u300_gpio *gpio) argument 643 struct u300_gpio *gpio; local 768 struct u300_gpio *gpio = platform_get_drvdata(pdev); local [all...] |
/drivers/mfd/ |
H A D | pcf50633-gpio.c | 21 #include <linux/mfd/pcf50633/gpio.h> 38 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val) argument 42 reg = gpio - PCF50633_GPIO1 + PCF50633_REG_GPIO1CFG; 48 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio) argument 52 reg = gpio - PCF50633_GPIO1 + PCF50633_REG_GPIO1CFG; 59 int pcf50633_gpio_invert_set(struct pcf50633 *pcf, int gpio, int invert) argument 63 reg = gpio - PCF50633_GPIO1 + PCF50633_REG_GPIO1CFG; 70 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio) argument 74 reg = gpio - PCF50633_GPIO1 + PCF50633_REG_GPIO1CFG; 82 int gpio, in 81 pcf50633_gpio_power_supply_set(struct pcf50633 *pcf, int gpio, int regulator, int on) argument [all...] |
H A D | wm8350-gpio.c | 20 #include <linux/mfd/wm8350/gpio.h> 23 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) argument 31 1 << gpio); 35 1 << gpio); 40 static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) argument 44 1 << gpio); 47 WM8350_GPIO_DEBOUNCE, 1 << gpio); 50 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) argument 55 switch (gpio) { 143 static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, in argument 155 gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) argument 167 gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) argument 179 gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) argument 188 wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, int pol, int pull, int invert, int debounce) argument [all...] |
/drivers/staging/android/ |
H A D | timed_gpio.h | 19 #define TIMED_GPIO_NAME "timed-gpio" 23 unsigned gpio; member in struct:timed_gpio
|
/drivers/tty/serial/ |
H A D | serial_mctrl_gpio.c | 20 #include <linux/gpio/consumer.h> 26 struct gpio_desc *gpio[UART_GPIO_MAX]; member in struct:mctrl_gpios 52 if (!IS_ERR_OR_NULL(gpios->gpio[i]) && 54 gpiod_set_value(gpios->gpio[i], 62 if (!IS_ERR_OR_NULL(gpios) && !IS_ERR_OR_NULL(gpios->gpio[gidx])) 63 return gpios->gpio[gidx]; 80 if (!IS_ERR_OR_NULL(gpios->gpio[i]) && 82 if (gpiod_get_value(gpios->gpio[i])) 104 gpios->gpio[i] = devm_gpiod_get_index(dev, 112 if (IS_ERR_OR_NULL(gpios->gpio[ [all...] |
/drivers/pcmcia/ |
H A D | pxa2xx_colibri.c | 17 #include <linux/gpio.h> 47 static struct gpio colibri_pcmcia_gpios[] = { 65 skt->socket.pci_irq = gpio_to_irq(colibri_pcmcia_gpios[READY].gpio); 66 skt->stat[SOC_STAT_CD].irq = gpio_to_irq(colibri_pcmcia_gpios[DETECT].gpio); 83 state->detect = !!gpio_get_value(colibri_pcmcia_gpios[DETECT].gpio); 84 state->ready = !!gpio_get_value(colibri_pcmcia_gpios[READY].gpio); 85 state->bvd1 = !!gpio_get_value(colibri_pcmcia_gpios[BVD1].gpio); 86 state->bvd2 = !!gpio_get_value(colibri_pcmcia_gpios[BVD2].gpio); 95 gpio_set_value(colibri_pcmcia_gpios[PPEN].gpio, 97 gpio_set_value(colibri_pcmcia_gpios[RESET].gpio, [all...] |
/drivers/rtc/ |
H A D | rtc-ds2404.c | 18 #include <linux/gpio.h> 46 unsigned int gpio; member in struct:ds2404_gpio 50 struct ds2404_gpio *gpio; member in struct:ds2404 66 ds2404_gpio[DS2404_RST].gpio = pdata->gpio_rst; 67 ds2404_gpio[DS2404_CLK].gpio = pdata->gpio_clk; 68 ds2404_gpio[DS2404_DQ].gpio = pdata->gpio_dq; 71 err = gpio_request(ds2404_gpio[i].gpio, ds2404_gpio[i].name); 73 dev_err(&pdev->dev, "error mapping gpio %s: %d\n", 78 gpio_direction_output(ds2404_gpio[i].gpio, 1); 81 chip->gpio [all...] |