mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
mfd: intel-lpss: Remove extra DebugFS dentry
There is no point to keep the variable dir just to assing lpss->debugfs to it later, just use lpss->debugfs directly. Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260916-intel-lpss-debugfs-v7-3-eb51d41f55e0@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
a5712fe170
commit
7cd5da70ff
|
|
@ -144,18 +144,14 @@ static void intel_lpss_cache_ltr(struct intel_lpss *lpss)
|
|||
|
||||
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);
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
static void intel_lpss_debugfs_remove(struct intel_lpss *lpss)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user