gpio-xlp.c (65b7f6d740a6696974056251c98da0e99f956be8) gpio-xlp.c (58383c78425e4ee1c077253cf297b641c861c02e)
1/*
2 * Copyright (C) 2003-2015 Broadcom Corporation
3 * All Rights Reserved
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *

--- 359 unchanged lines hidden (view full) ---

368
369 bitmap_zero(priv->gpio_enabled_mask, XLP_MAX_NR_GPIO);
370
371 gc = &priv->chip;
372
373 gc->owner = THIS_MODULE;
374 gc->label = dev_name(&pdev->dev);
375 gc->base = 0;
1/*
2 * Copyright (C) 2003-2015 Broadcom Corporation
3 * All Rights Reserved
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *

--- 359 unchanged lines hidden (view full) ---

368
369 bitmap_zero(priv->gpio_enabled_mask, XLP_MAX_NR_GPIO);
370
371 gc = &priv->chip;
372
373 gc->owner = THIS_MODULE;
374 gc->label = dev_name(&pdev->dev);
375 gc->base = 0;
376 gc->dev = &pdev->dev;
376 gc->parent = &pdev->dev;
377 gc->ngpio = ngpio;
378 gc->of_node = pdev->dev.of_node;
379 gc->direction_output = xlp_gpio_dir_output;
380 gc->direction_input = xlp_gpio_dir_input;
381 gc->set = xlp_gpio_set;
382 gc->get = xlp_gpio_get;
383
384 spin_lock_init(&priv->lock);

--- 44 unchanged lines hidden ---
377 gc->ngpio = ngpio;
378 gc->of_node = pdev->dev.of_node;
379 gc->direction_output = xlp_gpio_dir_output;
380 gc->direction_input = xlp_gpio_dir_input;
381 gc->set = xlp_gpio_set;
382 gc->get = xlp_gpio_get;
383
384 spin_lock_init(&priv->lock);

--- 44 unchanged lines hidden ---