deliverable/linux.git
8 years agogpio: generic: make bgpio_pdata always visible
Arnd Bergmann [Sat, 9 Jan 2016 21:16:42 +0000 (22:16 +0100)] 
gpio: generic: make bgpio_pdata always visible

Board files that define their own bgpio_pdata are broken when
CONFIG_GPIO_GENERIC is disabled and the bgpio_pdata structure
definition is hidden by the #ifdef:

arch/arm/mach-clps711x/board-autcpu12.c:148:15: error: variable 'autcpu12_mmgpio_pdata' has initializer but incomplete type
 static struct bgpio_pdata autcpu12_mmgpio_pdata __initdata = {
arch/arm/mach-clps711x/board-autcpu12.c:149:2: error: unknown field 'base' specified in initializer
  .base = AUTCPU12_MMGPIO_BASE,

Since the board files should generally not care what drivers are
enabled, this makes the structure definition visible again.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 0f4630f3720e ("gpio: generic: factor into gpio_chip struct")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpiolib: fix chip order in gpio list
Julien Grossholtz [Thu, 7 Jan 2016 21:46:45 +0000 (16:46 -0500)] 
gpiolib: fix chip order in gpio list

In some situations the gpio_list order is not correct.
As a consequence gpiochip_find_base returns the same
base number twice. This happens when a first ship is added
with manual base number, then other ships are added using
automatic base number.

To prevent this behaviour, this patch add the new chip after
the last element of the gpio list.

Signed-off-by: Julien Grossholtz <julien.grossholtz@savoirfairelinux.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: mpc8xxx: Do not use gpiochip_get_data() in mpc8xxx_gpio_save_regs()
Guenter Roeck [Thu, 7 Jan 2016 16:25:24 +0000 (08:25 -0800)] 
gpio: mpc8xxx: Do not use gpiochip_get_data() in mpc8xxx_gpio_save_regs()

Commit 709d71a17c33 ("gpio: mpc8xxx: use gpiochip data pointer") replaces
the use of container_of() with gpiochip_get_data(). However, the data
pointer is not yet set by the time the save_regs function is called.

Fixes: 709d71a17c33 ("gpio: mpc8xxx: use gpiochip data pointer")
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: mm-lantiq: Do not use gpiochip_get_data() in ltq_mm_save_regs()
Guenter Roeck [Thu, 7 Jan 2016 16:24:58 +0000 (08:24 -0800)] 
gpio: mm-lantiq: Do not use gpiochip_get_data() in ltq_mm_save_regs()

Commit 6aa7dbfa2877 ("gpio: mm-lantiq: use gpiochip data pointer") replaces
the use of container_of() with gpiochip_get_data(). However, the data
pointer is not yet set by the time the save_regs function is called.

Fixes: 6aa7dbfa2877 ("gpio: mm-lantiq: use gpiochip data pointer")
Cc: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Cc: John Crispin <blogic@openwrt.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: brcmstb: Allow building driver for BMIPS_GENERIC
Florian Fainelli [Wed, 6 Jan 2016 18:55:23 +0000 (10:55 -0800)] 
gpio: brcmstb: Allow building driver for BMIPS_GENERIC

BMIPS_GENERIC (arch/mips/bmips) is the Kconfig symbol associated with
Broadcom MIPS-based STB chips. Since this driver is perfectly usable on
these platforms as well, allow using it.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Gregory Fong <gregory.0xf0@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: brcmstb: Set endian flags for big-endian MIPS
Florian Fainelli [Wed, 6 Jan 2016 18:55:22 +0000 (10:55 -0800)] 
gpio: brcmstb: Set endian flags for big-endian MIPS

Broadcom MIPS-based STB chips endianness is configured by boot strap,
which also reverses all bus endianness (i.e., big-endian CPU + big
endian bus ==> native endian I/O).

Other architectures (e.g., ARM) either do not support big endian, or
else leave I/O in little endian mode.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Gregory Fong <gregory.0xf0@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: moxart: fix build regression
Arnd Bergmann [Thu, 7 Jan 2016 13:55:34 +0000 (14:55 +0100)] 
gpio: moxart: fix build regression

A cleanup patch replaced bgpio_chip with gpio_chip but missed
two references to the bgpio_chip:

drivers/gpio/gpio-moxart.c:60:19: error: use of undeclared identifier 'bgc'; did you mean 'gc'?
        gc->bgpio_data = bgc->read_reg(bgc->reg_set);
drivers/gpio/gpio-moxart.c:35:20: note: 'gc' declared here
drivers/gpio/gpio-moxart.c:60:33: error: use of undeclared identifier 'bgc'; did you mean 'gc'?
        gc->bgpio_data = bgc->read_reg(bgc->reg_set);

This adds the missing change.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 0f4630f3720e ("gpio: generic: factor into gpio_chip struct")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: xilinx: Do not use gpiochip_get_data() in xgpio_save_regs()
Guenter Roeck [Thu, 7 Jan 2016 00:20:10 +0000 (16:20 -0800)] 
gpio: xilinx: Do not use gpiochip_get_data() in xgpio_save_regs()

Commit 097d88e94c44 ("gpio: xilinx: use gpiochip data pointer") replaces
the use of container_of() with gpiochip_get_data(). Unfortunately, the
data pointer is not yet set by the time xgpio_save_regs() is called,
causing a system hang.

Fixes: 097d88e94c44 ("gpio: xilinx: use gpiochip data pointer")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agoleds: pca9532: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 15:39:20 +0000 (16:39 +0100)] 
leds: pca9532: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Riku Voipio <riku.voipio@iki.fi>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: linux-leds@vger.kernel.org
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agoleds: tca6507: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 15:42:58 +0000 (16:42 +0100)] 
leds: tca6507: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Riku Voipio <riku.voipio@iki.fi>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: linux-leds@vger.kernel.org
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agohid: cp2112: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 15:26:28 +0000 (16:26 +0100)] 
hid: cp2112: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: linux-input@vger.kernel.org
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agobcma: gpio: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 15:17:02 +0000 (16:17 +0100)] 
bcma: gpio: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: linux-wireless@vger.kernel.org
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agoavr32: gpio: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 12:48:02 +0000 (13:48 +0100)] 
avr32: gpio: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Acked-by: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agovideo: fbdev: via: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 22:20:57 +0000 (23:20 +0100)] 
video: fbdev: via: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: pch: Optimize pch_gpio_get()
Jean Delvare [Tue, 5 Jan 2016 13:23:47 +0000 (14:23 +0100)] 
gpio: pch: Optimize pch_gpio_get()

The double negation is costly and can be avoided by shifting the
register value before masking the requested bit.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agoRevert "pinctrl: lantiq: Implement gpio_chip.to_irq"
Linus Walleij [Tue, 5 Jan 2016 13:10:17 +0000 (14:10 +0100)] 
Revert "pinctrl: lantiq: Implement gpio_chip.to_irq"

This reverts commit 3e640743fee6e6a82ead1f163737755b2a965712.

This commit needs to go into the pinctrl tree to avoid
clashes.

8 years agopinctrl: nsp-gpio: use gpiochip data pointer
Linus Walleij [Thu, 10 Dec 2015 18:02:26 +0000 (19:02 +0100)] 
pinctrl: nsp-gpio: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Yendapally Reddy Dhananjaya Reddy <yrdreddy@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: vt8500-wmt: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 21:50:08 +0000 (22:50 +0100)] 
pinctrl: vt8500-wmt: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: exynos5440: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 21:27:19 +0000 (22:27 +0100)] 
pinctrl: exynos5440: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Kukjin Kim <kgene@kernel.org>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: at91-pio4: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 21:12:11 +0000 (22:12 +0100)] 
pinctrl: at91-pio4: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: mediatek: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 21:06:23 +0000 (22:06 +0100)] 
pinctrl: mediatek: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: spear-plgpio: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 09:31:35 +0000 (10:31 +0100)] 
pinctrl: spear-plgpio: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: spear-devel@list.st.com
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: sirf: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 09:29:35 +0000 (10:29 +0100)] 
pinctrl: sirf: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Barry Song <baohua@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: sirf-atlas7: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 09:27:16 +0000 (10:27 +0100)] 
pinctrl: sirf-atlas7: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Barry Song <baohua@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: sh-pfc: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 09:24:54 +0000 (10:24 +0100)] 
pinctrl: sh-pfc: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: sunxi: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 21:40:43 +0000 (22:40 +0100)] 
pinctrl: sunxi: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: samsung: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 09:18:50 +0000 (10:18 +0100)] 
pinctrl: samsung: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: ssbi-gpio: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 09:16:00 +0000 (10:16 +0100)] 
pinctrl: ssbi-gpio: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Björn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: ssbi-mpp: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 09:13:53 +0000 (10:13 +0100)] 
pinctrl: ssbi-mpp: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Björn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: spmi-mpp: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:53:39 +0000 (09:53 +0100)] 
pinctrl: spmi-mpp: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Björn Andersson <bjorn.andersson@sonymobile.com>
Cc: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: spmi: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:51:47 +0000 (09:51 +0100)] 
pinctrl: spmi: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Cc: Björn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: msm: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:49:18 +0000 (09:49 +0100)] 
pinctrl: msm: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Björn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: st: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:45:18 +0000 (09:45 +0100)] 
pinctrl: st: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Srinivas Kandagatla <srinivas.kandagatla@gmail.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: rockchip: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:39:13 +0000 (09:39 +0100)] 
pinctrl: rockchip: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: pistachio: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:37:00 +0000 (09:37 +0100)] 
pinctrl: pistachio: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: digicolor: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:35:14 +0000 (09:35 +0100)] 
pinctrl: digicolor: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: u300: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:33:30 +0000 (09:33 +0100)] 
pinctrl: u300: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: at91: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:27:45 +0000 (09:27 +0100)] 
pinctrl: at91: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: as3722: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:24:32 +0000 (09:24 +0100)] 
pinctrl: as3722: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: Mallikarjun Kasoju <mkasoju@nvidia.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: amd: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 08:21:38 +0000 (09:21 +0100)] 
pinctrl: amd: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Ken Xue <Ken.Xue@amd.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: adi2: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 07:33:09 +0000 (08:33 +0100)] 
pinctrl: adi2: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: abx500: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 07:29:43 +0000 (08:29 +0100)] 
pinctrl: abx500: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: nomadik: use gpiochip data pointer
Linus Walleij [Thu, 3 Dec 2015 14:44:46 +0000 (15:44 +0100)] 
pinctrl: nomadik: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: meson: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 07:26:34 +0000 (08:26 +0100)] 
pinctrl: meson: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Beniamino Galvani <b.galvani@gmail.com>
Cc: Carlo Caione <carlo@endlessm.com>
Cc: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: intel: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 23:18:59 +0000 (00:18 +0100)] 
pinctrl: intel: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: cherryview: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 23:16:03 +0000 (00:16 +0100)] 
pinctrl: cherryview: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: bcm2835: use gpiochip data pointer
Linus Walleij [Tue, 8 Dec 2015 21:01:00 +0000 (22:01 +0100)] 
pinctrl: bcm2835: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agopinctrl: baytrail: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 23:03:44 +0000 (00:03 +0100)] 
pinctrl: baytrail: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: fix misleading comment
Linus Walleij [Mon, 7 Dec 2015 14:31:58 +0000 (15:31 +0100)] 
gpio: fix misleading comment

We are not relying on container_of() now that we have
gpiochip_get_data().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: convert remaining users to gpiochip_add_data()
Linus Walleij [Tue, 8 Dec 2015 09:41:44 +0000 (10:41 +0100)] 
gpio: convert remaining users to gpiochip_add_data()

For completion, sweep the floor from all gpiochip_add() usage so
we can remove that function and get rid of the function wrapper
gpiochip_add().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: zynq: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:29:53 +0000 (15:29 +0100)] 
gpio: zynq: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: zx: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:27:49 +0000 (15:27 +0100)] 
gpio: zx: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: zevio: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:26:02 +0000 (15:26 +0100)] 
gpio: zevio: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Fabian Vogt <fabian@ritter-vogt.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: xlp: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:22:31 +0000 (15:22 +0100)] 
gpio: xlp: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Kamlakant Patel <kamlakant.patel@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: xilinx: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:20:17 +0000 (15:20 +0100)] 
gpio: xilinx: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: xgene: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:16:50 +0000 (15:16 +0100)] 
gpio: xgene: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Feng Kan <fkan@apm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: wm8994: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:15:30 +0000 (15:15 +0100)] 
gpio: wm8994: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: patches@opensource.wolfsonmicro.com
Cc: Mark Brown <broonie@kernel.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: wm8350: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:13:39 +0000 (15:13 +0100)] 
gpio: wm8350: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: patches@opensource.wolfsonmicro.com
Cc: Mark Brown <broonie@kernel.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: wm831x: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:11:34 +0000 (15:11 +0100)] 
gpio: wm831x: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: patches@opensource.wolfsonmicro.com
Cc: Mark Brown <broonie@kernel.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: vx855: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:09:57 +0000 (15:09 +0100)] 
gpio: vx855: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: viperboard: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:08:00 +0000 (15:08 +0100)] 
gpio: viperboard: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: vf610: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:03:30 +0000 (15:03 +0100)] 
gpio: vf610: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Stefan Agner <stefan@agner.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: ucb1400: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 14:01:14 +0000 (15:01 +0100)] 
gpio: ucb1400: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: tz1090: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:58:56 +0000 (14:58 +0100)] 
gpio: tz1090: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: tz1090-pdc: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:57:25 +0000 (14:57 +0100)] 
gpio: tz1090-pdc: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: twl4030: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:55:07 +0000 (14:55 +0100)] 
gpio: twl4030: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Roger Quadros <rogerq@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: ts5500: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:52:55 +0000 (14:52 +0100)] 
gpio: ts5500: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: tps65912: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:50:42 +0000 (14:50 +0100)] 
gpio: tps65912: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>
Cc: Margarita Olaya <magi@slimlogic.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: tps65910: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:48:49 +0000 (14:48 +0100)] 
gpio: tps65910: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-By: Rhyland Klein <rklein@nvidia.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: tps6586x: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:46:45 +0000 (14:46 +0100)] 
gpio: tps6586x: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: timberdale: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:43:28 +0000 (14:43 +0100)] 
gpio: timberdale: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: tc3589x: use gpiochip data pointer
Linus Walleij [Thu, 3 Dec 2015 14:37:29 +0000 (15:37 +0100)] 
gpio: tc3589x: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: tb10x: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:41:02 +0000 (14:41 +0100)] 
gpio: tb10x: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Christian Ruppert <christian.ruppert@abilis.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: syscon: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:38:36 +0000 (14:38 +0100)] 
gpio: syscon: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: sx150x: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:36:31 +0000 (14:36 +0100)] 
gpio: sx150x: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Wei Chen <Wei.Chen@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: stp-xway: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:34:33 +0000 (14:34 +0100)] 
gpio: stp-xway: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: stmpe: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:32:13 +0000 (14:32 +0100)] 
gpio: stmpe: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Bhupesh Sharma <bhupesh.sharma@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: sta2x11: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:29:48 +0000 (14:29 +0100)] 
gpio: sta2x11: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: spear-spics: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:26:58 +0000 (14:26 +0100)] 
gpio: spear-spics: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: sch311x: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:24:24 +0000 (14:24 +0100)] 
gpio: sch311x: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: sch: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:21:49 +0000 (14:21 +0100)] 
gpio: sch: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: samsung: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:19:19 +0000 (14:19 +0100)] 
gpio: samsung: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Paul Bolle <pebolle@tiscali.nl>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: rdc321x: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:16:19 +0000 (14:16 +0100)] 
gpio: rdc321x: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: rcar: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:12:45 +0000 (14:12 +0100)] 
gpio: rcar: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: rc5t583: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 13:08:12 +0000 (14:08 +0100)] 
gpio: rc5t583: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: pxa: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 10:42:22 +0000 (11:42 +0100)] 
gpio: pxa: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Daniel Mack <zonque@gmail.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: pl061: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 10:37:33 +0000 (11:37 +0100)] 
gpio: pl061: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: pch: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 10:34:53 +0000 (11:34 +0100)] 
gpio: pch: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Thierry Reding <treding@nvidia.com>
Cc: Daniel Krueger <daniel.krueger@systec-electronic.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: pcf857x: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 10:24:05 +0000 (11:24 +0100)] 
gpio: pcf857x: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: George Cherian <george.cherian@ti.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: pca953x: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 10:20:54 +0000 (11:20 +0100)] 
gpio: pca953x: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Markus Pargmann <mpa@pengutronix.de>
Cc: Toby Smith <toby@tismith.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: palmas: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 10:18:17 +0000 (11:18 +0100)] 
gpio: palmas: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Andrew Chew <achew@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: omap: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 10:16:00 +0000 (11:16 +0100)] 
gpio: omap: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: octeon: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 10:13:27 +0000 (11:13 +0100)] 
gpio: octeon: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Reviewed-by: David Daney <david.daney@cavium.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: mvebu: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 10:09:24 +0000 (11:09 +0100)] 
gpio: mvebu: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: msic: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 09:37:39 +0000 (10:37 +0100)] 
gpio: msic: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: mpc8xxx: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 09:34:28 +0000 (10:34 +0100)] 
gpio: mpc8xxx: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: mpc5200: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 09:25:36 +0000 (10:25 +0100)] 
gpio: mpc5200: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: mm-lantiq: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 09:19:29 +0000 (10:19 +0100)] 
gpio: mm-lantiq: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Cc: John Crispin <blogic@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: ml-ioh: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 09:12:05 +0000 (10:12 +0100)] 
gpio: ml-ioh: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Feng Tang <feng.tang@intel.com>
Cc: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
8 years agogpio: mcp: use gpiochip data pointer
Linus Walleij [Mon, 7 Dec 2015 09:09:36 +0000 (10:09 +0100)] 
gpio: mcp: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This page took 0.043131 seconds and 5 git commands to generate.