[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240304140650.977784-1-andriy.shevchenko@linux.intel.com>
Date: Mon, 4 Mar 2024 16:04:31 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>
Subject: [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/20240228204919.3680786-1-andriy.shevchenko@linux.intel.com
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(-)
--
2.43.0.rc1.1.gbec44491f096
Powered by blists - more mailing lists