From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14341C00A89 for ; Mon, 2 Nov 2020 14:23:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8C828206B7 for ; Mon, 2 Nov 2020 14:23:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tjc/pXek"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="S/8i09D8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C828206B7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=pwXdwjcz7axMLGamku2/lCyJDV2s2kbXY3/d+ZqNvu0=; b=tjc/pXekdLAq3kfU06o/7H8Oki CqQb9nJ7eDhioMCpTLeQwEb+5dMMS54RGm4yKdoCgi/aSPqMsw6/lMkmueCWwLXdCSXOeJibk+wz2 h8Scm45x7wHa8s1s3nUwOMBJ0BK3JkNsEhBRZ54qvDAhPl1r+dlcx66LTpyGalubupfrVVywK4CGW ltKTQfcRqWVU6Axlnn36Uofl0LsM2mrMUE14tzNYl5tJBEnrvy1DZ0TRPET2Mv1UCOITNUZeKY4HJ OX5dsEilSQHIYS3E/wfUUmfWroCQygGA9Agot9WuYS7WfOGTbfnqfrLGZ8IxEFclkH8ampCDUq5Po fkhFYV7w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZajG-0001AO-Re; Mon, 02 Nov 2020 14:22:39 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZajC-00018B-Mv for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2020 14:22:35 +0000 Received: by mail-wm1-x343.google.com with SMTP id 205so1926252wma.4 for ; Mon, 02 Nov 2020 06:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/DY02pbxbUd8TTZ6XbSiEOVkNrUXbPl/uqGVBC2qraA=; b=S/8i09D8BZsdmiZrniZM41ImGRmw7GajJOj5OnYaktbEfMlXquSDREak0AAHxC7MbS pVrxYyPVIYDvhngZmlTQCOkTujsCbakX8Cq5THlWY6UKOvMOvTl+qMqQSkUipCcBjNS2 +b1cKwL3cJTsx/OAYndiqUpPfHLTc0IULfFpH/ldLfqq3d+ZIiw4/fw4aQ8oT5jqWbFP QAF0yeZReQx1e2Kqt9Chby9KGcsF2JHVn4VRmcaiH6nwxrPspnDcr35PvMY/OfP0gy/1 xENDQ0DTBIIZzY5YlHem0QpQwSPWJ2+TM4L8tDM3uNXIyGn8uq6YDL9+plDVPdp5+1rB fiTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/DY02pbxbUd8TTZ6XbSiEOVkNrUXbPl/uqGVBC2qraA=; b=L0vcQ0U94i/XC+7cFTcGkHvyKNSI6qfwu5GuhOPdls+HqO/HdXOdZvhQD/ptnhMs6T ZWF7tpnkAVUrXPIebu2HXYdkcUdAojd7Qw8sa4JANh2vWviaY/AbGVnAmHuG4pJ+DGHk Vruq9nuzQceBd5ddgWuGyB42B9qdF/hz8y5uVCmNo209hngpUlqt3ah3WMwSV7G1ijnK SpPIBAKLXfWD4cPWojyt1pxW9fWHrbXoDzzeOvJt/PVCKLmj9AWIn8iYcxfOVP2LluIZ FU+aiRTVfz3ree25kvjvI/oWlfSrYaE3bDubCwlil35iKX+MalxX3ilQDnLe5sXQP/QR g/pA== X-Gm-Message-State: AOAM533JxSZBmTkfs/cURjWEB9CJrPwpCxhwGnbCV3/We4ADEBiUbC6U KSLgGN2JgxdE9isOoNwCxnydkQ== X-Google-Smtp-Source: ABdhPJxlETx+w1GM/1vayA/BxsPU2jI0wkCtTj4UVee9cZz/598V0qnBRE/Hg/mGXgavdS+piRgqbg== X-Received: by 2002:a1c:9e0e:: with SMTP id h14mr17608439wme.18.1604326952106; Mon, 02 Nov 2020 06:22:32 -0800 (PST) Received: from debian-brgl.home (amarseille-656-1-4-167.w90-8.abo.wanadoo.fr. [90.8.158.167]) by smtp.gmail.com with ESMTPSA id 3sm16182987wmd.19.2020.11.02.06.22.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 06:22:31 -0800 (PST) From: Bartosz Golaszewski To: Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Michal Simek Subject: [PATCH v2 0/4] iio: adc: xilinx: use even more devres Date: Mon, 2 Nov 2020 15:22:24 +0100 Message-Id: <20201102142228.14949-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.29.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201102_092234_889873_1C55CF10 X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-iio@vger.kernel.org, Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bartosz Golaszewski This is a follow-up to commit 750628c79bb1 ("iio: adc: xilinx-xadc: use devm_krealloc()"). I noticed we can use even more devres helpers and entirely drop the remove() callback. v1 -> v2: - squash three patches adding more devres calls into one for easier review - don't insist on the 80 characters limit - add a new helper: devm_krealloc_array() and use it Bartosz Golaszewski (4): device: provide devm_krealloc_array() iio: adc: xilinx: use helper variable for &pdev->dev iio: adc: xilinx: use devm_krealloc_array() instead of kfree() + kcalloc() iio: adc: xilinx: use more devres helpers and remove remove() drivers/iio/adc/xilinx-xadc-core.c | 151 +++++++++++++---------------- include/linux/device.h | 11 +++ 2 files changed, 80 insertions(+), 82 deletions(-) -- 2.29.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel