You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
gpio: menz127: Drop *mdev field from struct men_z127_gpio
No need to store *medv in struct men_z127_gpio. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
@@ -35,7 +35,6 @@
|
|||||||
struct men_z127_gpio {
|
struct men_z127_gpio {
|
||||||
struct gpio_chip gc;
|
struct gpio_chip gc;
|
||||||
void __iomem *reg_base;
|
void __iomem *reg_base;
|
||||||
struct mcb_device *mdev;
|
|
||||||
struct resource *mem;
|
struct resource *mem;
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
};
|
};
|
||||||
@@ -44,7 +43,7 @@ static int men_z127_debounce(struct gpio_chip *gc, unsigned gpio,
|
|||||||
unsigned debounce)
|
unsigned debounce)
|
||||||
{
|
{
|
||||||
struct men_z127_gpio *priv = gpiochip_get_data(gc);
|
struct men_z127_gpio *priv = gpiochip_get_data(gc);
|
||||||
struct device *dev = &priv->mdev->dev;
|
struct device *dev = gc->parent;
|
||||||
unsigned int rnd;
|
unsigned int rnd;
|
||||||
u32 db_en, db_cnt;
|
u32 db_en, db_cnt;
|
||||||
|
|
||||||
@@ -136,7 +135,6 @@ static int men_z127_probe(struct mcb_device *mdev,
|
|||||||
goto err_release;
|
goto err_release;
|
||||||
}
|
}
|
||||||
|
|
||||||
men_z127_gpio->mdev = mdev;
|
|
||||||
mcb_set_drvdata(mdev, men_z127_gpio);
|
mcb_set_drvdata(mdev, men_z127_gpio);
|
||||||
|
|
||||||
ret = bgpio_init(&men_z127_gpio->gc, &mdev->dev, 4,
|
ret = bgpio_init(&men_z127_gpio->gc, &mdev->dev, 4,
|
||||||
|
|||||||
Reference in New Issue
Block a user