chao an
664927c86e
mm/alloc: remove all unnecessary cast for alloc
...
Fix the minor style issue and remove unnecessary cast
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-30 14:34:20 +08:00
Michal Lenc
0f6a5e50c4
ioexpander: add option to register GPIO by name for IOexpander
...
Function gpio_lower_half_byname() was added to support registration of
GPIO pin by name as supported for IOexpander. Some of the code is wrapped
in new static function gpio_lower_half_internal() to avoid code
duplication.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-08-03 07:02:12 -07:00
Nathan Hartman
9d5a91c41a
ioexpander: Honor C89 standard
2022-08-15 10:24:39 +08:00
Xiang Xiao
e1b5e87ff3
Fix ioexpander/gpio_lower_half.c:359:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-09 11:06:06 +08:00
Xiang Xiao
ab0f5f607d
Fix ioexpander/gpio_lower_half.c:302:23: warning: too many arguments for format
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-27 11:04:11 -06:00
Juha Niskanen
2f15fd2464
drivers/ioexpander/gpio_lower_half.c: add missing debug.h
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-06-23 11:07:47 -05:00
Alin Jerpelea
e5b6305f4a
drivers: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-04 18:32:27 -08:00
Beat Küng
a349595316
gpio: extend gpio_pintype_e for pulldown/up and opendrain
...
- fix code style
- fix bool conversion when calling go_read()
2020-07-07 08:34:25 -05:00
Xiang Xiao
bd4e8e19d3
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:45:07 -06:00
Xiang Xiao
6a3c2aded6
Fix wait loop and void cast ( #24 )
...
* Simplify EINTR/ECANCEL error handling
1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx
* Unify the void cast usage
1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
ligd
ead2c26be8
drivers/ioexpander/gpio_lower_half.c: Remove limitation when pintype > GPIO_INTERRUPT_PIN.
2019-09-09 07:36:17 -06:00
zhuyanlin
459d9f2851
Squashed commit of the following:
...
driver/ioexpander: Add gpio_pin_unregister function to GPIO driver
driver/ioexpander: Add pinset struct to GPIO driver for interrupt pins larger than 64
driver/ioexpander: Initialize pintype/inttype when registering ioexpander device
driver/ioexpander: Add SETPINTYPE ioctl command to the GPIO driver
2018-08-27 09:25:11 -06:00
Gregory Nutt
95e20afcd2
drivers/: Remove dangling space at the end of lines.
2017-06-28 13:17:17 -06:00
Gregory Nutt
803b540e8a
Fix various issues with I/O expander and GPIO lower half drivers from testing with simulated I/O expander
2016-08-03 12:46:54 -06:00
Gregory Nutt
62bc64bc55
Back out last Makefile.unix change. After puzzling about this for a while, I moved the definitions to apps/Make.defs. Also includes some cosmetic changes to GPIO lower half driver comments.
2016-08-02 08:37:30 -06:00
Gregory Nutt
d0f6a23a32
Ooops.. forgot to add files before last commit
2016-08-01 11:15:29 -06:00
Gregory Nutt
9d9ff44736
GPIO lower half: Add conditional logic to handle the case where the I/O expander does not support interrupts.
2016-08-01 09:06:58 -06:00
Gregory Nutt
bf60f11801
Remove some unnecessary header file inclusions
2016-08-01 08:55:13 -06:00
Gregory Nutt
3e79ffc6dd
Some updates to the last commit
2016-08-01 08:49:15 -06:00
Gregory Nutt
6090f69bfd
Add a GPIO lower-half driver that can be used to register a GPIO character driver for accessing pins on an I/O expander.
2016-08-01 08:43:10 -06:00