diff options
author | Ian Abbott <[email protected]> | 2023-09-13 18:07:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-10-05 13:34:04 +0200 |
commit | fade5e5b0b2a2cc3855f64be6407b0bdcd837714 (patch) | |
tree | 0b56dc94c261734c78ab7302f38ea1ed50ca9529 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | c62f5032f72a745542aa6a7e777c7819c96adfbe (diff) |
comedi: comedi_8254: Replace comedi_8254_init() and comedi_8254_mm_init()
`comedi_8254_init()` and `comedi_8254_mm_init()` return `NULL` on
failure, but the failure is not necessarily due to lack of memory.
Change them to return an `ERR_PTR` value on failure and rename the
functions to make it obvious the API has changed. `comedi_8254_init()`
has been replaced with `comedi_8254_io_alloc()`, and
`comedi_8254_mm_init()` has been replaced with `comedi_8254_mm_alloc()`.
Cc: Arnd Bergmann <[email protected]>
Cc: Niklas Schnelle <[email protected]>
Signed-off-by: Ian Abbott <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions