gpio-kempld.c (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) | gpio-kempld.c (58383c78425e4ee1c077253cf297b641c861c02e) |
---|---|
1/* 2 * Kontron PLD GPIO driver 3 * 4 * Copyright (c) 2010-2013 Kontron Europe GmbH 5 * Author: Michael Brunner <michael.brunner@kontron.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License 2 as published --- 152 unchanged lines hidden (view full) --- 161 162 gpio->pld = pld; 163 164 platform_set_drvdata(pdev, gpio); 165 166 chip = &gpio->chip; 167 chip->label = "gpio-kempld"; 168 chip->owner = THIS_MODULE; | 1/* 2 * Kontron PLD GPIO driver 3 * 4 * Copyright (c) 2010-2013 Kontron Europe GmbH 5 * Author: Michael Brunner <michael.brunner@kontron.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License 2 as published --- 152 unchanged lines hidden (view full) --- 161 162 gpio->pld = pld; 163 164 platform_set_drvdata(pdev, gpio); 165 166 chip = &gpio->chip; 167 chip->label = "gpio-kempld"; 168 chip->owner = THIS_MODULE; |
169 chip->dev = dev; | 169 chip->parent = dev; |
170 chip->can_sleep = true; 171 if (pdata && pdata->gpio_base) 172 chip->base = pdata->gpio_base; 173 else 174 chip->base = -1; 175 chip->direction_input = kempld_gpio_direction_input; 176 chip->direction_output = kempld_gpio_direction_output; 177 chip->get_direction = kempld_gpio_get_direction; --- 42 unchanged lines hidden --- | 170 chip->can_sleep = true; 171 if (pdata && pdata->gpio_base) 172 chip->base = pdata->gpio_base; 173 else 174 chip->base = -1; 175 chip->direction_input = kempld_gpio_direction_input; 176 chip->direction_output = kempld_gpio_direction_output; 177 chip->get_direction = kempld_gpio_get_direction; --- 42 unchanged lines hidden --- |