gpio-lp3943.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | gpio-lp3943.c (58383c78425e4ee1c077253cf297b641c861c02e) |
---|---|
1/* 2 * TI/National Semiconductor LP3943 GPIO driver 3 * 4 * Copyright 2013 Texas Instruments 5 * 6 * Author: Milo Kim <milo.kim@ti.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 191 unchanged lines hidden (view full) --- 200 201 lp3943_gpio = devm_kzalloc(&pdev->dev, sizeof(*lp3943_gpio), 202 GFP_KERNEL); 203 if (!lp3943_gpio) 204 return -ENOMEM; 205 206 lp3943_gpio->lp3943 = lp3943; 207 lp3943_gpio->chip = lp3943_gpio_chip; | 1/* 2 * TI/National Semiconductor LP3943 GPIO driver 3 * 4 * Copyright 2013 Texas Instruments 5 * 6 * Author: Milo Kim <milo.kim@ti.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 191 unchanged lines hidden (view full) --- 200 201 lp3943_gpio = devm_kzalloc(&pdev->dev, sizeof(*lp3943_gpio), 202 GFP_KERNEL); 203 if (!lp3943_gpio) 204 return -ENOMEM; 205 206 lp3943_gpio->lp3943 = lp3943; 207 lp3943_gpio->chip = lp3943_gpio_chip; |
208 lp3943_gpio->chip.dev = &pdev->dev; | 208 lp3943_gpio->chip.parent = &pdev->dev; |
209 210 platform_set_drvdata(pdev, lp3943_gpio); 211 212 return gpiochip_add(&lp3943_gpio->chip); 213} 214 215static int lp3943_gpio_remove(struct platform_device *pdev) 216{ --- 26 unchanged lines hidden --- | 209 210 platform_set_drvdata(pdev, lp3943_gpio); 211 212 return gpiochip_add(&lp3943_gpio->chip); 213} 214 215static int lp3943_gpio_remove(struct platform_device *pdev) 216{ --- 26 unchanged lines hidden --- |