Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp819125rwd; Thu, 25 May 2023 04:34:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5EoxWOoeZV7LB64yCFKcA3ExSlXIZAhkhgAfluhKd3vnJUZwdtpMjpPrdHSeQtazlJsOyw X-Received: by 2002:a17:90b:4b0c:b0:253:2ddd:4a36 with SMTP id lx12-20020a17090b4b0c00b002532ddd4a36mr1430568pjb.6.1685014465523; Thu, 25 May 2023 04:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685014465; cv=none; d=google.com; s=arc-20160816; b=aRB8pVaoFaWyZPtQQoMOFPu1lTz7IYcqZQJG1XvhbwKwGXVPc+5c3G8l4C+Cy/kAUe 2CZfDhY+Ryd5c2paspyMf8zrwpJfZm4WKw8TYKyb2TJ4j9BMEKQ3SjrAHZgEvJdEsNBx fuQYgo8SBq6r+pyFYjiQIem3R/TK9Qn8H53Pfa+MMa5TEi6cnWjuF6khe6mQ/TAvwjmu OEULtBcA2L7vkS73PKQGhagoEGNoFyw9hXCJL4WYE4U5Dl94etBv1EgTFhnFw1gKDCzT qIInaouBR0CFuU2PzWEjAFg+H6yLVNGITILkoGtrQt8oF3AxUeV/ZSljKabZ1c6M1SQE ec/A== 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=hFfMgc2gXHyIq2FZV0A+K+fOjKv6wypS46hL5CNmxLA=; b=e5LCToJWUhHAN+9NMDdwWEV2VjbgRwomCfG3tyTIx/9t/rkdNt3mK0KrraZq4fYtdS /yBF0Rrl10LKxZ/TvSpVdqi23ZUFi8W2O1znyXGWZN8cRZi/n9WKp4mmnvMpYcO9whWY qqLuy9HAg0yr9RuFKn8YpqiviqYsIuQUoJJvKmsS4ifLy+LkdbQltMK+9J0jWm8953U8 0Kfc6Mf0d5bOo2zUbn1NL1hHPG/wLeG0FQWndQomRmeJy4Foys2IQcyR1eCVRptjuLew sfnsFNtirv5JjgdUmqyf6+ZSJ6agBBFM+BH8weEup1v3hmIWq9zM6bxi9eb54UwFXhgg jkIg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x10-20020a17090a970a00b0024e1911ab42si1357447pjo.18.2023.05.25.04.34.13; Thu, 25 May 2023 04:34:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240825AbjEYLOI (ORCPT + 99 others); Thu, 25 May 2023 07:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240294AbjEYLOF (ORCPT ); Thu, 25 May 2023 07:14:05 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6322410B for ; Thu, 25 May 2023 04:14:03 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:59b9:3473:f0ae:e2b7]) by baptiste.telenet-ops.be with bizsmtp id 0zE02A0065NiV2701zE0g9; Thu, 25 May 2023 13:14:00 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1q28ue-00349j-NA; Thu, 25 May 2023 13:14:00 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1q28uu-00DnlR-DD; Thu, 25 May 2023 13:14:00 +0200 From: Geert Uytterhoeven To: Liam Girdwood , Mark Brown , Osama Muhammad Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 0/2] regulator: core: Fix error checking and messages Date: Thu, 25 May 2023 13:13:57 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,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 Hi all, This patch series corrects an error check, fixes error messages when debugfs is not enabled, and improves debugfs error handling in the regulator core. Changes compared to v2: - Fix build after patch 1. Changes compared to v1: - Split in two patches, - Improve rationale. Thanks for your comments! Geert Uytterhoeven (2): regulator: core: Fix more error checking for debugfs_create_dir() regulator: core: Streamline debugfs operations drivers/regulator/core.c | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) -- 2.34.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds