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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2475C6FA8F for ; Wed, 30 Aug 2023 22:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244977AbjH3WJV (ORCPT ); Wed, 30 Aug 2023 18:09:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244935AbjH3WJR (ORCPT ); Wed, 30 Aug 2023 18:09:17 -0400 Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0179EA8 for ; Wed, 30 Aug 2023 15:08:48 -0700 (PDT) Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4Rbd320NjLz9y; Wed, 30 Aug 2023 23:38:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1693431534; bh=NbXR0AO83UXMG8y8s//Dy4duP9lJLolOMNifSPMBuD4=; h=Date:Subject:From:To:Cc:From; b=h0lvqrfqShmsJAvHGc49UygWA0zxx2drJ/+2eruaQJZ+I1e25fpDoyIaU07JZFPh3 ZBIi9RldEBcth0Jpcfo3acvmVAi5jyV1FK/sOEKeUQ99Znf2OjMOgk6XmFNcPcI8Sb XX/NC3n4kIW46r9/Y19JTLhdj91RLwxKZFL75SoAboCE99NJnMys12fIvm53w0EOyy 1ZnydvJtl7XkhKYLqN5VMRmf+bZErX9gLW89PIU+zodW/B0kseB5k1MsGVSePtey8o sVmOaMFaEZwEEisM4xMJtXSfQbW/uCNd2c5u4bdCwP+IR33PTJ71mfSiprezHG/Q3f Zt1y7mxKLbRTA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at mail Date: Wed, 30 Aug 2023 23:38:53 +0200 Message-Id: Subject: [PATCH 0/9] regulator/core: Trivial cleanups and improvements 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a random set of cleanups, dead code removal and minor optimizations. Most patches are applicable independently; those that aren't share a bit of context, but are nevertheless logically separate. Michał Mirosław (9): 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/core: make regulator_class const drivers/regulator/core.c | 93 ++++++++++--------------------- drivers/regulator/internal.h | 2 +- include/linux/regulator/driver.h | 1 - include/linux/regulator/machine.h | 7 +-- 4 files changed, 33 insertions(+), 70 deletions(-) -- 2.39.2