Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1411893lqa; Mon, 29 Apr 2024 07:51:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUddprq0w2PUkqcKUwis6iay6DixbzodT/I3xSdzyACcZ5r+UHoqWDaS80p0uLll3JyuMnS05S2HypC/j2lqm7x3FIHKrSMaj7+srmlNg== X-Google-Smtp-Source: AGHT+IHpXgXETTJ1++hl0RT+wodOqXLDbjUhbzSGp9IBpIptetvsuZ2DcS3abPZJtC1FtbCCnpaV X-Received: by 2002:a67:ed45:0:b0:47a:40df:e799 with SMTP id m5-20020a67ed45000000b0047a40dfe799mr7151899vsp.5.1714402269520; Mon, 29 Apr 2024 07:51:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714402269; cv=pass; d=google.com; s=arc-20160816; b=cS2EDCiAHH5uQuEeiUYAzS6+MKDE3RY6D0tmJ3ZlLyI8EW3Rhxp1O2gSFzew/IaWVt JcII839GiibPzkED9MxOQeU5MVOEblZDXVmJB3Q4JqW1e6NoaUHowmGqNxgxwAcF3iIS GpHd9XJmGUh1MZLk4dnwuQiPveav+Xe1IQX0RL2y/k73oYaL20TBHImqfkNyMMJe3l4K EbfW+f7WZYFmnHA7WVn9YLcfpL0HjIfhd1f3fMy7zReKX6eMEWOamw6HbfdOIbqijD1b /Rtf0kzLwbOw+oZZHtKWidjcmHEKV1yDitiP2LTWOSyaw/3B2inpqlffM01/fQIGLftm vFmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:message-id:date :dkim-signature; bh=kI/+YE0kazskxJnWAYgxuQrKZ/hyhgsv5GJGPcrGLHw=; fh=9+JPiKUqmiwg7nrgynbn+qu8x0UhUJwyp0gAHVwwYQs=; b=P82TTSKI1c3YHDS7kO5fbGd5YmJf6M8DZOGwS3C4yEehiXe7bziHaWp9ZdN7Hj79x5 /2017eQJExouUofbifS143frGGRm1lmALWYAEphJZ+XHVDTEykDj0aBZmuUvifsgOhnT YdU4TeE8Suq4Wepej6JByhtng4YJNAAZxD695rmc+e6ZyQ9dTwWO4aSTxJX57W8kkRzj kpU3OozhFndTb27uIfNZZL/5+ksgoTz4/lSU8m1jdmMYnDnDyACPTn3BjasvncTlstAy 695fb9CsymwL7H/IOzBc07hwjxRa1jBySSn4TAEZfGHh3jbldwP0nu71HFjysPLAf06W MXtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=WEps1Ixz; arc=pass (i=1 spf=pass spfdomain=rere.qmqm.pl dkim=pass dkdomain=rere.qmqm.pl dmarc=pass fromdomain=rere.qmqm.pl); spf=pass (google.com: domain of linux-kernel+bounces-162487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t26-20020a9f389a000000b007e3e137f1ebsi3889503uaf.102.2024.04.29.07.51.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 07:51:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=WEps1Ixz; arc=pass (i=1 spf=pass spfdomain=rere.qmqm.pl dkim=pass dkdomain=rere.qmqm.pl dmarc=pass fromdomain=rere.qmqm.pl); spf=pass (google.com: domain of linux-kernel+bounces-162487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 29E411C21844 for ; Mon, 29 Apr 2024 14:51:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF60380624; Mon, 29 Apr 2024 14:50:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="WEps1Ixz" Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) (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 9038B535A2 for ; Mon, 29 Apr 2024 14:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.227.64.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714402258; cv=none; b=V4UWLCmmn7kjzI7dlcalYFgjE4TcB5k7Q+I3K+NXdPXJrpDaA051jkEQasVLlGYOan49ptcYeK4HQk8Jk2rTkluUpizucrYeHQlIKHJdH/YcBsWX0g+BPeGjSWgFp6vkM9mCbYEtFxfvFwG64bbl+fydXHHsscNoqe8YlH2LP4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714402258; c=relaxed/simple; bh=X7JtwVobbl1aaVdL5AfJMEGYBq1GtV+sXC/F23TkgsY=; h=Date:Message-Id:Subject:MIME-Version:Content-Type:From:To:Cc; b=nXHFdmCOr+E7w8ZAgxsXYOMttxJB/rHQ1nZ4N+3Or0arAAfz/9e7hV0uKahFgXK84z6tEyTRAbHsVgDbaJNpmsiB2bDqmyy9jjh4ZH2rBnRsFc/66XbWkyTKXOxmPFzg3+Nrymb+e5XI4Nh6g43EbUilcGow9yN6SP6/yDWlzaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl; spf=pass smtp.mailfrom=rere.qmqm.pl; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b=WEps1Ixz; arc=none smtp.client-ip=91.227.64.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rere.qmqm.pl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1714401927; bh=X7JtwVobbl1aaVdL5AfJMEGYBq1GtV+sXC/F23TkgsY=; h=Date:Subject:From:To:Cc:From; b=WEps1IxztuJBn90ya29W2ogR5A9xc3Em9Oi/CC4aFcnAOzb7KwoAwH7tyJY18/c3T wgVvKS71iZ+tfOqvYso0G23yICN2+L0byZUn55hVSvEQdQGbdKqyr/IvhhpLEjIGUb aX9Jmkl+Ser7rWIwBWf1dNrkDd/pxHAOScuensa7WtpDXtNP5ABkmqmr0FBmRCmubE xZ13V3F0uhITItJgCiR/zCZD0kv2ihBiHcW77FhyE/gHd7OvVq2SM27lsW+fEOcQZz xg+21gwGAVGUjg7I4v2icsDOyQF1wvqJz4LS9b7PcRIItslUluJVf7ZjUkJPnKX0ZN 7kV7GmE9ye9zQ== Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4VSmMq2r3Gz8F; Mon, 29 Apr 2024 16:45:27 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 1.0.5 at mail Date: Mon, 29 Apr 2024 16:45:27 +0200 Message-Id: Subject: [PATCH v2 00/12] regulator/core: Trivial cleanups and improvements 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=UTF-8 Content-Transfer-Encoding: 8bit From: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org This is a random set of cleanups, dead code removal and minor optimizations. This is a v2 of patchset sent long time ago, extended with a couple more entries (one including a driver cleanup to enable further changes). Tested on Tegra3 (ARM) and x86 devices. v2: - added regulator_dev.reg_data cleanup patches - added a missing hunk in patch 6 - removed an extra change from patch 5 (Note: skipping changelogs in the patches, as the update has no relevant material changes there) Michał Mirosław (12): regulator/core: _regulator_get: simplify error returns regulator/core: set_consumer_device_supply: remove `has_dev` regulator/core: of_get_child_regulator: remove goto regulator/core: regulator_bulk_get: remove redundant NULL stores regulator/core: regulator_ena_gpio_ctrl: pull in ena_gpio state handling regulator/core: remove regulator_init callback regulator/core: remove regulator_get_init_drvdata() regulator/core: set_consumer_device_supply: avoid copying const data regulator/tps68470: use rdev_get_drvdata() regulator/core: use dev_to_rdev() for device -> regulator_dev cast regulator/core: remove regulator_get/set_drvdata regulator/core: use rdev->dev.driver_data drivers/regulator/core.c | 180 ++++++++----------------- drivers/regulator/tps68470-regulator.c | 4 +- include/linux/regulator/consumer.h | 14 -- include/linux/regulator/driver.h | 9 +- include/linux/regulator/machine.h | 7 +- 5 files changed, 62 insertions(+), 152 deletions(-) -- 2.39.2