Message ID | 20221101174255.54452-3-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3117091wru; Tue, 1 Nov 2022 10:56:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Go5sRbpVkggnGrydXKqKojuXX0d3Z6osggwVTu4sOD8XDStDuTFLm3G0wn0y+cS8GOHsO X-Received: by 2002:a17:907:8a18:b0:7ad:a942:f0e2 with SMTP id sc24-20020a1709078a1800b007ada942f0e2mr19699447ejc.119.1667325378672; Tue, 01 Nov 2022 10:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667325378; cv=none; d=google.com; s=arc-20160816; b=GqE0lU124H+kR2GTkdk7tLJKKNAbWhGIE4wOOUw9BNnrHDq7J+w61x7rSdQBWQz2mE Lgi+RpFs2k4luUYfG9SiLl5bNJhQ32eoeYpN4wpm3GNUWC8rCpJhIOSQMFsuCllDWei3 bIw5qL4WQdc709tIIgMoy/+WlNXyWDYJO9TfhZ14B1gdV7LcpUY5ft61ViVUwQh8+dRi S//MpsiJ1uYzuIC0jPwFhO0MZ6eA4NyVztH211bZIIbptpsLhCRmjS4cg8F+dQU9p+ho xJsRtJSD/jC/VitGqf1Is+kGyBrA6kSm77BdFi5zlC9s/p6eLb/L4RCot0VWbCEagx28 vSRA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6r3zcfqJicr1tQdJcajG3H5MhCXcKfS3DgwTBniaNvA=; b=hqxybvORRQSQANhKVi4gkkqAajoVvNAY3j8c8c86P6bseRmKqApsg3+D+a0yVgshaC LNiF2t0JQVvPVSOkAqFHPU5NzaslDTlJaBw/v69weAqT10Q6GOrvfdq2o2CCzqU78TA1 b45DR56+/peugFXPHbJ79Np/Os2okzUjsA2PyW9aRDtsU2WRiXNCE4YxCem3MXUFZxUi p1khgKK2C3FG2gfzpWXJd2ACW49UwOfbC/fYoONqIDQU7Pmb9eijCyxJFE8xqK8d/oSQ JuTtaEt4R/y0qRUtkZVXxaxGx0e6mVAVnMCOk8sW9CQIskP4Fg2Cyt8Pn6327m8y+T6D ID3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Uvmfhpia; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne3-20020a1709077b8300b007aa6ce58d9asi13360728ejc.712.2022.11.01.10.55.54; Tue, 01 Nov 2022 10:56:18 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=Uvmfhpia; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230340AbiKARml (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Tue, 1 Nov 2022 13:42:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbiKARmi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Nov 2022 13:42:38 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB5BA1D0E6; Tue, 1 Nov 2022 10:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667324556; x=1698860556; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SbsFTojRHajkqxc6yQDWgDcq4VABF214el1jsXeM55s=; b=UvmfhpiaRo9PXBsFqP7lwaYFwVpHuEjJuZ95TSl3D03DvPY5iOXrJcAc yzXCEJW0Hgg6GI1v8CWBUg2/GIXvr/OnHiTmFXD5RS6Y8PaSz8BfqMnPI 6NdVm0Ya9UVk9Fop2Y7g13bsMk4F3719YJVLKg71AcpFKM3PHFtfZgfD7 8vz9kK1ZZQdNGMuFHW3h8Iq1sfRBBQ111Gho8j1yvhUKjvZojuvN6gBdk rZwXhk1uX8a5SxiJ6nX8+o0YcGXQASgciaEW6XEjadf8tB0krJOEwmG5c zG7ZBS+ImcEoAT5Y2HBs5mi53FVOlzFGXCHp8zc8rEgDg1v7Fl3KcaxvN g==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="310909163" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="310909163" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 10:42:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="667272870" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="667272870" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 01 Nov 2022 10:42:34 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id F008F155; Tue, 1 Nov 2022 19:42:57 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Thierry Reding <thierry.reding@gmail.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> Subject: [PATCH v1 3/3] pwm: core: Remove S_IFREG from debugfs_create_file() Date: Tue, 1 Nov 2022 19:42:55 +0200 Message-Id: <20221101174255.54452-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221101174255.54452-1-andriy.shevchenko@linux.intel.com> References: <20221101174255.54452-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748317376669688839?= X-GMAIL-MSGID: =?utf-8?q?1748317376669688839?= |
Series |
[v1,1/3] pwm: core: Refactor pwmchip_add() to avoid extra checks
|
|
Commit Message
Andy Shevchenko
Nov. 1, 2022, 5:42 p.m. UTC
The debugfs_create_file() already has a check and adds S_IFREG
automatically. Remove unneeded flag.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pwm/core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 36128f3301ac..c004a8a662d6 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -1179,8 +1179,7 @@ DEFINE_SEQ_ATTRIBUTE(pwm_debugfs); static int __init pwm_debugfs_init(void) { - debugfs_create_file("pwm", S_IFREG | 0444, NULL, NULL, - &pwm_debugfs_fops); + debugfs_create_file("pwm", 0444, NULL, NULL, &pwm_debugfs_fops); return 0; }