From patchwork Wed May 24 12:22:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9790 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2811507vqo; Wed, 24 May 2023 05:33:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Caw028GNEGZ05Bj+zy7WSYrfq9d/KXMpVScUq/3biUOgL6U3c+mDSzfRJZwAc+f9MleDV X-Received: by 2002:a05:6a20:a11e:b0:10d:6dc6:32c8 with SMTP id q30-20020a056a20a11e00b0010d6dc632c8mr1735495pzk.32.1684931617690; Wed, 24 May 2023 05:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684931617; cv=none; d=google.com; s=arc-20160816; b=yj6GwHrfMFiTO5W1Xp4kOASv4v5N4rwU7tfWfh9ioT5kQM/tAPxP8n2zLqrhRroQif +eZYaigI6eJKHYdQ3xhU+52+JxIU/FPTfEWozlY9T5yw8/Pzp9n4ML51hSisP8lsvLXk 6CDw3QNWMADK8s6dHLJObf3y0KJYLX3TFXAT1dlrYG5BbG+93CKVGxDa9pnykI11hPIs Nxa2qjYayrDCdBPFmHN3GUz03Wn5vRmVGrdwxbsb4MB1uv1+0WkZ4OIrIF6JeTk1sCof k2+luXvOAou4f9GUFyJHYl9WTolFQ5+fWlNtfvEYNvK4sZfnrXY535tpBGvcxl4CCvVe d/+g== 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=/HGzUolYj28GjVVKpEAKjy6vTy+WTSOj6uakT4cNK/k=; b=i8n0fPlt9JrHOB5o9tsdOo6PJSYw7tWGg6eX5dJ5hoMwAsjRuaTdsGBLE28cbP2lRj OPzxh7F/UKbDFszOuoxIPHJC1SB9ZOEkp0eIBjp6W56pwW5HO6QFLHvQApGOYqvOp5zw dRQKFJ6Jba/M1DlEt0NDVsby0ds5SMMg6d3Lf54olct/CCxUhZsoFxE7mHtT2fo+km0r s7cU8KDDFWuOulVhMeFZypsgO7q0kKrOeh4Il7PiH9AT74a/aTXJrvVsfWMtUsXD5LfZ CL1PN0/bxMCmh07phqsazGQLKV/rMjYpMhbxRIHjfEgs9HpsCVizApktuFwYqhuMuQVv tuLA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h62-20020a638341000000b005342966f497si5092299pge.712.2023.05.24.05.33.25; Wed, 24 May 2023 05:33:37 -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 S229764AbjEXMW1 (ORCPT + 99 others); Wed, 24 May 2023 08:22:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjEXMWZ (ORCPT ); Wed, 24 May 2023 08:22:25 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 620389C for ; Wed, 24 May 2023 05:22:22 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:59b9:3473:f0ae:e2b7]) by michel.telenet-ops.be with bizsmtp id 0cNL2A00M5NiV2706cNLJv; Wed, 24 May 2023 14:22:20 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1q1nVF-002xw8-Ac; Wed, 24 May 2023 14:22:20 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1q1nVU-00DPC7-AZ; Wed, 24 May 2023 14:22:20 +0200 From: Geert Uytterhoeven To: Liam Girdwood , Mark Brown , Osama Muhammad Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 0/2] regulator: core: Fix error checking and messages Date: Wed, 24 May 2023 14:22:16 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766778855688052065?= X-GMAIL-MSGID: =?utf-8?q?1766778855688052065?= 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 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(-)