From patchwork Mon Mar 20 14:57:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 13181403 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F573C6FD1D for ; Mon, 20 Mar 2023 14:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=m2IRiPeIRLHJWwfBxzGkGXU+52qLg12ArWGwWUJLoY4=; b=3iDa0RnDV/R5IS Afc+SifwIPmTOvZSOInRIXlU0Rb9f4sgDJ3IBnlA+s6CgY0DiYBJjiz/6k1F9h1j43wTEJ4OCm5VB kHhmtDXwNPVqEQScqTN1R2HZXot6z7JZFZD0TlntXQO2vMDtn2z33BV5quSCfQd5ehid9nCjdk13N wOLbvds2/thxDnspXIQcJnizjXJt3VY1raBOCQtA8vTnmQlSWglexba/qOQEq0CjisKADruddSsHM dayr3mWRbm1QVVPuvmcO8ATKYUyVfBRMsWPDsq5BsgNLRtk4ohrm0hrsosh8ukPZm4cirzmwBlG/v 23CyxJ8y9XYHNG0MYpgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peGwt-009QBS-1B; Mon, 20 Mar 2023 14:57:23 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peGwq-009Q9S-03 for linux-arm-kernel@lists.infradead.org; Mon, 20 Mar 2023 14:57:21 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A1E7FAD7; Mon, 20 Mar 2023 07:58:02 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.18.95]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 87D3B3F71E; Mon, 20 Mar 2023 07:57:15 -0700 (PDT) From: James Clark To: linux-kernel@vger.kernel.org, linux@roeck-us.net, michal.simek@amd.com, Jonathan.Cameron@huawei.com Cc: James Clark , Jonathan Corbet , Jean Delvare , Anand Ashok Dumbre , Jonathan Cameron , Lars-Peter Clausen , Michal Simek , Andy Gross , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Jiri Slaby , linux-doc@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v3 0/4] devres: Provide krealloc_array Date: Mon, 20 Mar 2023 14:57:05 +0000 Message-Id: <20230320145710.1120469-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230320_075720_123331_D78DA81D X-CRM114-Status: UNSURE ( 8.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Changes since v2: * Remove change in qcom_geni_serial.c in the last commmit and replace it with a comment instead * Whitespace fix Changes since v1: * Style fix ----------------------- Hi, I had a use for a devm realloc_array in a separate change, so I've added one and updated all the obvious existing uses of it that I could find. This is basically a copy paste of the one in slab.h Applies to v6.3-rc3 Thanks James James Clark (4): devres: Provide krealloc_array hwmon: pmbus: Use devm_krealloc_array iio: adc: Use devm_krealloc_array serial: qcom_geni: Comment use of devm_krealloc rather than devm_krealloc_array .../driver-api/driver-model/devres.rst | 1 + drivers/hwmon/pmbus/pmbus_core.c | 6 +++--- drivers/iio/adc/xilinx-ams.c | 9 +++------ drivers/iio/adc/xilinx-xadc-core.c | 17 +++++++---------- drivers/tty/serial/qcom_geni_serial.c | 5 +++++ include/linux/device.h | 11 +++++++++++ 6 files changed, 30 insertions(+), 19 deletions(-)