Skip to content

iio: core: Fix and cleanup to iio_device_alloc()

Andy Shevchenko linux-iio lkml 1 version Applied

Status from this message: Applied to the togreg-normal branch of iio.git which I'll rebase on rc1

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2iio: core: Leave private pointer NULL when no private data supplieddrivers/iio/industrialio-core.c+4 -22 replies
2/2iio: core: Calculate alloc_size only once in iio_device_alloc()drivers/iio/industrialio-core.c+4 -52 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Lechner
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] iio: core: Fix and cleanup to iio_device_alloc()

This is an exctract of the two patches from
https://lore.kernel.org/r/[email protected]

In v1 (extract):
- removed unneeded 'else' branch (David)
- fixed typo in allocation cleanup (David)

Andy Shevchenko (2):
iio: core: Leave private pointer NULL when no private data supplied
iio: core: Calculate alloc_size only once in iio_device_alloc()

 drivers/iio/industrialio-core.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
Signature · 1 line
2.43.0.rc1.1.gbec44491f096