Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5532423rwr; Tue, 9 May 2023 02:53:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mD+T+OoukP0QJNv8zbT3ocSzj1RrNdvmt3owm/Zp0z01Ohty0Mu8YCvCE2YLAzHUV3hiQ X-Received: by 2002:a05:6a20:7da7:b0:101:6513:49bd with SMTP id v39-20020a056a207da700b00101651349bdmr1246221pzj.33.1683626028525; Tue, 09 May 2023 02:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683626028; cv=none; d=google.com; s=arc-20160816; b=q1vHQNbZtENtdFFaHGOV5tdHOfZIosX9kS2d4Za992MPBMBMTCtmG+4LmbrpEVW5g7 LGv+j3U5eC0HcQLaxpCVhCKKllZzdp/7KzxLPS7jEaqjc5Mu4AzfLudpTmf3RMopLn5v e1RgUfNDXuCc5ue5sh9Ldufw9z4Q6OEs94a+K5OVOID9UPjetQmUeRzAyxJgoebwVIdT LnKK6B6GRF7Yl/gf3HqtSTSKvkGjqUfeJygSGApr51ueljRbXmKRoAWPPNFFicBIrfzz BNfF/sh0K6flxESKQYymrHOjEAXGrZNMGrA1TQbq9uFNvH+IIOPdfgRWR8yPds3Q1IC7 dT8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7JG28BSUBOM5Pmk6LF4jhM2iAWbtgriUwnxzUac0TGA=; b=cuqjVDxmPDsQneAGnWJ76x36sb6l74erM7jdPGTs+2l2iLijEvNYXrNIZ1wKNwpEeG yvZbdGpblhPWXwRyekXiVjrv3CdecSY0izmZGfCd2TA2n7fuxhxC3NGQcZfK+f/DDDWG 4pxZmuZ0TGZMhUdY59LfPShFCkG0YKd8n+rhtW16GodxfcRbZwfS9KO9n9NhuN5AenRQ /8ogp+7x1bPIlQ2k9yaKJoR//5S7pEWGMsFaxdydbv+ih9RIdq0VYfmjg0qMWi1ZVw+U ttW4fh9+buJ34MpL9V05m2Oo1OuyhOQSvoW/KcFUanEZV09RWtSthwj96+1e9ky1Ytw4 X5Dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a28-20020a637f1c000000b0052502825c67si1206714pgd.387.2023.05.09.02.53.34; Tue, 09 May 2023 02:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234887AbjEIJuc (ORCPT + 99 others); Tue, 9 May 2023 05:50:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbjEIJuA (ORCPT ); Tue, 9 May 2023 05:50:00 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 42BC619C; Tue, 9 May 2023 02:49:55 -0700 (PDT) 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 720561063; Tue, 9 May 2023 02:50:39 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.83.64]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A7E903F67D; Tue, 9 May 2023 02:49:50 -0700 (PDT) From: James Clark To: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Cc: linux@roeck-us.net, michal.simek@amd.com, Jonathan.Cameron@huawei.com, James Clark , Jonathan Corbet , Jean Delvare , Anand Ashok Dumbre , Jonathan Cameron , Lars-Peter Clausen , Andy Gross , Bjorn Andersson , Konrad Dybcio , 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 v4 0/4] devres: Provide krealloc_array Date: Tue, 9 May 2023 10:49:37 +0100 Message-Id: <20230509094942.396150-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v3: * Rebase onto v6.4-rc1 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.4-rc1 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(-) -- 2.34.1