aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/kernel/gpio_txx9.c
AgeCommit message (Collapse)AuthorFilesLines
2016-02-19MIPS: txx9: switch to gpiochip_add_data()Linus Walleij1-2/+2
We're planning to remove the gpiochip_add() function to swith to gpiochip_add_data() with NULL for data argument. Cc: [email protected] Acked-by: Ralf Baechle <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2016-01-24MIPS: TXx9: Be sure to clamp return valueLinus Walleij1-1/+1
As we want gpio_chip .get() calls to be able to return negative error codes and propagate to drivers, we need to go over all drivers and make sure their return values are clamped to [0,1]. We do this by using the ret = !!(val) design pattern. Signed-off-by: Linus Walleij <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/11923/ Signed-off-by: Ralf Baechle <[email protected]>
2008-07-15[MIPS] txx9: Make gpio_txx9 entirely spinlock-safeAtsushi Nemoto1-4/+6
TXx9 GPIO set/get routines are spinlock-safe. This patch make gpio_direction_{input,output} routines also spinlock-safe so that they can be used during early board setup. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2008-04-28[MIPS] generic txx9 gpio supportAtsushi Nemoto1-0/+87
This is a board-independent TXx9 gpio API implementation using gpiolib. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>