diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-03-09 22:00:27 +0700 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-03-09 22:00:27 +0700 |
commit | 70aba44b6cade8dc63261c4f97d5e83b0c02d07a (patch) | |
tree | 8d6682d63567b7dc06d998aaea33a4f358b5f14a /include/linux/mfd | |
parent | 7b1e5dc86c0030314f8f6e828177a6c5bb7b9006 (diff) | |
download | blackbird-op-linux-70aba44b6cade8dc63261c4f97d5e83b0c02d07a.tar.gz blackbird-op-linux-70aba44b6cade8dc63261c4f97d5e83b0c02d07a.zip |
Revert "gpio: lp3943: Drop pin_used and lp3943_gpio_request/lp3943_gpio_free"
This reverts commit 3fab91ea284a3b795327dda915a3c150a49e4be2.
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/lp3943.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/lp3943.h b/include/linux/mfd/lp3943.h index d3a738118b27..3490db782988 100644 --- a/include/linux/mfd/lp3943.h +++ b/include/linux/mfd/lp3943.h @@ -94,12 +94,18 @@ struct lp3943_reg_cfg { * @regmap: Used for I2C communication on accessing registers * @pdata: LP3943 platform specific data * @mux_cfg: Register configuration for pin MUX + * @pin_used: Bit mask for output pin used. + * This bitmask is used for pin assignment management. + * 1 = pin used, 0 = available. + * Only LSB 16 bits are used, but it is unsigned long type + * for atomic bitwise operations. */ struct lp3943 { struct device *dev; struct regmap *regmap; struct lp3943_platform_data *pdata; const struct lp3943_reg_cfg *mux_cfg; + unsigned long pin_used; }; int lp3943_read_byte(struct lp3943 *lp3943, u8 reg, u8 *read); |