Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp378305pxx; Mon, 26 Oct 2020 10:32:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg+fdMv4uY9UQ7NPwaGbN7qWXGgzpygXdStzvVgphEV2UR1vq891BnZ4k/QcGY+mIhkkpQ X-Received: by 2002:a17:906:34c3:: with SMTP id h3mr16868162ejb.132.1603733538657; Mon, 26 Oct 2020 10:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603733538; cv=none; d=google.com; s=arc-20160816; b=bTYagXLz16ZtvxTtPse2GRIifTQXwM2AbBO/nOK9HTYY1M+Br+UAsn4TlfA4RWPcxE G26Q35cxkDNIpHtZqpZBnGoizfrOYsTWXfJCua+lDURA3WP8JmS8l36dabNHToF+dlYV YYTiPsPNojVi4KSs6tkIsADdz5Lcvy1AhXzKA96yO/7QKU3KbIl+fzcZVrPWOzNQp2jO GAlPnlvtzj2c44bH7I/kan3Cv1LC6KdTRfbDqfLk12jr+YkwvQn8kxBhuQZ61IYaPCSN SYHZ82+QDGiSTvg5mi+EM8A/gyDXn9+IgDP0kImS4mnl7vjWn4QPntgPv/qH2SpzMqob HXbA== 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:dkim-signature; bh=rK/RPPWZa6SKsTnYF1m5W/2wUEvSNz6Acgvt6X95mP4=; b=g6cNmd4Hrs2s5TxANedG4eTAF8BTBdTYv6wmCGQ9VVP8WFVx0FNu00Q+LKQ5Fb8g2y o2hiw1lcKS9t1OGRezRdJ68/BmpJzztbQDTgcRDfBmYbH/CtgcRwEhhP+ZTy8fniMr7w 9ueXm+sF/Ro4pRJuypMqddPHn3cMPp0hxxkXRMw7ipuVEUfBZ6EmVmDVAh03SjasZlFu KnHCU4XlCfNp7f6trfhlCFdIOjQUv9WwY5/4B0zF6iRRmZyXXA5fFPGwbk76ZIabaD16 o+rAvsegF9cLNJPAfaMNE51nN6zzIq1leNLMRjvd4ZXRVs7+RaiHbCg6XL4jTGuMYdhH ql2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=I3SvKOow; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo6si7510640ejb.367.2020.10.26.10.31.56; Mon, 26 Oct 2020 10:32:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=I3SvKOow; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1780224AbgJZNgW (ORCPT + 99 others); Mon, 26 Oct 2020 09:36:22 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:56219 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1780180AbgJZNgV (ORCPT ); Mon, 26 Oct 2020 09:36:21 -0400 Received: by mail-wm1-f66.google.com with SMTP id a72so11680989wme.5 for ; Mon, 26 Oct 2020 06:36:20 -0700 (PDT) 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=rK/RPPWZa6SKsTnYF1m5W/2wUEvSNz6Acgvt6X95mP4=; b=I3SvKOowrQFnXIZoR/oZsaDasfhvCO8Zeid+jDIbKjD2aDn4ZRz5U88BuCY9CqxP2L o/QBPW+j/bdRD2T8KY66vV/g4OPGZME22iESWAMjWvInR9voNHAoCssvCalfM9Xx+WaD Rhc50f4L4HK2yH7uNXtuXVjTXWlv1S8QL5b3ZU9ghs/jUoPLxNamvni51Bw1AbV4+2h/ r0XVygPtVw3sqq6Fa5dioUyWteuDQevsj0a6mZiKJ/YafaJ8aGLCARSkArvdsHsYQSHj liFAJDWcaQeJmkVXmKSnPuu5BdFRqDwsRW76CMcnbulo3wHZx81LvcYV12Lxk40Il/rS d8+g== 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=rK/RPPWZa6SKsTnYF1m5W/2wUEvSNz6Acgvt6X95mP4=; b=cluVb5ILJldIqdyWjPq0Q8LT0ZvuFAiD2mM09WJ6rm8IWZ9CGTXrDma5ggBqcxVLOs RwMvNCshT3TwoeRqxwLaRq8N39Sqc1iAJOjYa7DR19CR/hhb6Tm5qzJJG9rMHyyEo2kN 0I0QYtNd7slbpwFpFyaqdcrA5O0n8FwswHEVsLDRuzppIAaeZXh6CgTYCDrhYI7okBHD ciLWZhku4tafMl/LU0hA/xZiSIUK5m0PDoSgJsNFS3JUefPHWrJ1aI7QycAgU32t98js gylYiWyJ5Mj0scXvcTD+7H/nDLFYWstTsZw1dyxUTOkkVynp/b8jcWzZtxwHvul/9/GL 7G7Q== X-Gm-Message-State: AOAM5305JcK30BridaIJ3E0gJLOXbcH2haSRopZ7MmZzsA7Y9hWdaosF 7aR9/V8QmTosKTvvUpwJ80+mCQ== X-Received: by 2002:a1c:6355:: with SMTP id x82mr17115177wmb.177.1603719379480; Mon, 26 Oct 2020 06:36:19 -0700 (PDT) Received: from localhost.localdomain (lfbn-nic-1-190-206.w2-15.abo.wanadoo.fr. [2.15.39.206]) by smtp.gmail.com with ESMTPSA id f7sm23688991wrx.64.2020.10.26.06.36.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 06:36:18 -0700 (PDT) From: Bartosz Golaszewski To: Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Michal Simek Cc: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 0/5] iio: adc: xilinx: use even more devres Date: Mon, 26 Oct 2020 14:36:04 +0100 Message-Id: <20201026133609.24262-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.29.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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. Bartosz Golaszewski (5): iio: adc: xilinx: use helper variable for &pdev->dev iio: adc: xilinx: use devm_krealloc() instead of kfree() + kcalloc() iio: adc: xilinx: use a devres action to disable and unprepare the clock iio: adc: xilinx: use devres for irq handling iio: adc: xilinx: use iio devres helpers drivers/iio/adc/xilinx-xadc-core.c | 146 +++++++++++++---------------- 1 file changed, 65 insertions(+), 81 deletions(-) -- 2.29.1