Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp302632lqk; Sat, 9 Mar 2024 10:38:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXDD3EU4PHcX/bNuloccdz0okjjMSQynmChtBsn18IlOaa8A/PkI5NqG4px/VgbGGauR5S8gANleELOPOIF61MUFSafdVWd+kFQlVUHOg== X-Google-Smtp-Source: AGHT+IHuLhMySKjfAuRg+XMEJSRUANH6vKL2TYZKvtj1cjE2S6kZRoF19IIkipq98ut4Xlo+9EMo X-Received: by 2002:a17:906:f150:b0:a45:b761:2c2 with SMTP id gw16-20020a170906f15000b00a45b76102c2mr1123276ejb.60.1710009539719; Sat, 09 Mar 2024 10:38:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1710009539; cv=pass; d=google.com; s=arc-20160816; b=oJkyZXrv659fXipTbEh+SnYyoA9o0h7mUkDVTVvVm+/nHMXwmb7S61LhvZGbEUIgiD Wc6AFHCMK6mmFZ3abNwN5Qcke+adxTiLjq8JWsCIv/vD6xF7BPzY/6Hhql0C1XFRLLTA pJ2UYmeM152IfMAHNPxCODpGfQRsHNxfSBRcltrrQxr7xIgZKbxcVsHWLU7h6/lEezbX E5QytZhARthGSrTTunW4/lnvUaqvGrA0k4ZQdsgxgXcHzjmErMC6cbTaIkhO3OQ7VisH VnqlNAegfg47Ds1EF6GfAvGSXz/nt0LEYJhmoMZBDULJh/QRyFYaVoxRj4fceLUaOa5x ZwAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=5RzOA5y9cjdxHN3EpfEOHuJoGiIRUVgxQuxZ7506EyM=; fh=I3PgrHaF7bdx4Z/E2GLN2smE8lrKP/b7/pPSjTpmz+k=; b=jfxmf/y3UXigktMbW0BPo9cVagG6n55DUqpLP7OFjmpuujJoFvkHEiSq004U8LWBjf 9XtTaA00d7yoIuv1W0Xd2FIx9zxvKV/o11UMzvOwCHViZXumyaohci9zu8AIGCRS+1QE v3C7+YdUiyIyAQLl1qZLaOVD/ler1cy+O2/0cqQ7RjcUq5pqBks7zKVqF4N3qyVt0zZq 96HXh4UDRNWWImrYWTvg6D/t6pfsgEm1FBXn0qoCRpmNd8VfJ8/8NV4kFxcXxs/C8acK 2zwvH9fDbbg4oMUwT9UsRVRyFZKLw7xMga7DZUpAEy92fuMkX1NDvwLOY2p5o0rH68IB eFcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=InsMuuly; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v19-20020a17090606d300b00a44ea0ed34esi947849ejb.911.2024.03.09.10.38.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 10:38:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=InsMuuly; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 445CB1F215A2 for ; Sat, 9 Mar 2024 18:38:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA1734597B; Sat, 9 Mar 2024 18:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="InsMuuly" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1CE2ABA4D; Sat, 9 Mar 2024 18:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710009531; cv=none; b=u6kcn3kjai58GuSIezfyXh57jOtphn7ry0v7nEvBGpFG7rBo+ncRm/is6jPw31QSXTVVm7pyST3jjDl2oOH/+s5L5tFaTg3SstBnZO/SGW7OE164EXc+gyo5oAHMVTPO76AUP80SQ+tXNnE2GtLDx2JFfSm53cUxcWeNYaJkhC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710009531; c=relaxed/simple; bh=4ntHYRxfbVXWtvp7sm4y9pGUhPND6R1s74zi0Qyr1gM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=opc8InRX+XgolWIMiu8BLYfTJ88h9Lqy2g5NiYzsqqswjMwBkVxPpyf9JJJlJjQ+/3Iota4jVgCSSIVwooFvxiXq/gdfZEZ9OzXCDqYjDZ1UeFwaav0GEYUWP5zX7uHmWWTQa9+Jhy+cIVQwaA4QJy5ddPgVybK17ivYwJkOwRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=InsMuuly; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80F8FC433F1; Sat, 9 Mar 2024 18:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710009530; bh=4ntHYRxfbVXWtvp7sm4y9pGUhPND6R1s74zi0Qyr1gM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=InsMuulyiAekko8mFliFdpIZVPM6feY9vzIP/VFHAnnv5m/kiLIYAYAPYw+57NdpA 72ujc8irB2iYdNn05Wd++MAg/j8OCjZp0qYWa/6vdkks5FgypkC0KmfjWAOIIpKmtY 3x4MotK5uQtkJQeMFABJi42ucZ3gYJNaMezt7cQjG2xJHB6gHzdibAd2u2QpRpM/pf 1gpljMskF9KHAKLr1jSgdKDLIz2fNDB/jjuQxbGxLi08cVDCMEm/XDVqgR1r7cnyYx LKpCKhJpfy8+gKWdODHfzfSBwGelbP3152NJFpB/H2D2hBsFvDGryVzIngMBzJFsEj 3KVOdPNa5CuVw== Date: Sat, 9 Mar 2024 18:38:39 +0000 From: Jonathan Cameron To: Andy Shevchenko Cc: Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Lars-Peter Clausen Subject: Re: [PATCH v1 0/2] iio: core: Fix and cleanup to iio_device_alloc() Message-ID: <20240309183839.4953914a@jic23-huawei> In-Reply-To: <20240304140650.977784-1-andriy.shevchenko@linux.intel.com> References: <20240304140650.977784-1-andriy.shevchenko@linux.intel.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 4 Mar 2024 16:04:31 +0200 Andy Shevchenko wrote: > 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(-) > Applied to the togreg-normal branch of iio.git which I'll rebase on rc1 once available and push out as togreg. Thanks, Jonathan