summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-03-09 22:00:27 +0700
committerLinus Walleij <linus.walleij@linaro.org>2016-03-09 22:00:27 +0700
commit70aba44b6cade8dc63261c4f97d5e83b0c02d07a (patch)
tree8d6682d63567b7dc06d998aaea33a4f358b5f14a /include/linux/mfd
parent7b1e5dc86c0030314f8f6e828177a6c5bb7b9006 (diff)
downloadop-kernel-dev-70aba44b6cade8dc63261c4f97d5e83b0c02d07a.zip
op-kernel-dev-70aba44b6cade8dc63261c4f97d5e83b0c02d07a.tar.gz
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/lp3943.h b/include/linux/mfd/lp3943.h
index d3a73811..3490db7 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);
OpenPOWER on IntegriCloud