From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Maria Lisina <sekoohaka.sarisan@gmail.com>
Cc: Lee Jones <lee@kernel.org>,
mfd@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 3/4] mfd: intel-lpss: Remove extra DebugFS dentry
Date: Wed, 16 Sep 2026 18:44:55 +0300 [thread overview]
Message-ID: <aqq5d5ESVulYfOnK@ashevche-desk.local> (raw)
In-Reply-To: <20260916-intel-lpss-debugfs-v6-3-5c118ac430ed@gmail.com>
On Wed, Sep 16, 2026 at 07:36:41PM +0500, Maria Lisina wrote:
> There is no point to keep the variable dir just to assing
> lpss->debugfs to it later, just use lpss->debugfs directly.
...
> static void intel_lpss_debugfs_add(struct intel_lpss *lpss)
> {
> - struct dentry *dir;
> -
> - dir = debugfs_create_dir(dev_name(lpss->dev), intel_lpss_debugfs);
> + lpss->debugfs = debugfs_create_dir(dev_name(lpss->dev),
> + intel_lpss_debugfs);
As Lee pointed out, we are fine with 100 limit, so one line here and below.
> /* Cache the values into lpss structure */
> intel_lpss_cache_ltr(lpss);
>
> - debugfs_create_x32("capabilities", 0444, dir, &lpss->caps);
> - debugfs_create_x32("active_ltr", 0444, dir, &lpss->active_ltr);
> - debugfs_create_x32("idle_ltr", 0444, dir, &lpss->idle_ltr);
> -
> - lpss->debugfs = dir;
> + debugfs_create_x32("capabilities", 0444,
> + lpss->debugfs, &lpss->caps);
> + debugfs_create_x32("active_ltr", 0444,
> + lpss->debugfs, &lpss->active_ltr);
> + debugfs_create_x32("idle_ltr", 0444,
> + lpss->debugfs, &lpss->idle_ltr);
> }
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-09-16 15:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 14:36 [PATCH v6 0/4] mfd: intel-lpss: Clean up and modernize DebugFS usage Maria Lisina
2026-09-16 14:36 ` [PATCH v6 1/4] mfd: intel-lpss: Remove redundant DebugFS error check Maria Lisina
2026-09-16 15:45 ` Andy Shevchenko
2026-09-16 14:36 ` [PATCH v6 2/4] mfd: intel-lpss: Use plain octal values for file permissions Maria Lisina
2026-09-16 15:46 ` Andy Shevchenko
2026-09-16 14:36 ` [PATCH v6 3/4] mfd: intel-lpss: Remove extra DebugFS dentry Maria Lisina
2026-09-16 15:44 ` Andy Shevchenko [this message]
2026-09-16 15:46 ` Andy Shevchenko
2026-09-16 15:54 ` Maria Lisina
2026-09-16 16:04 ` Andy Shevchenko
2026-09-16 14:36 ` [PATCH v6 4/4] mfd: intel-lpss: Switch to debugfs_remove() Maria Lisina
2026-09-16 15:47 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aqq5d5ESVulYfOnK@ashevche-desk.local \
--to=andriy.shevchenko@linux.intel.com \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=sekoohaka.sarisan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®