summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2026-09-16 21:23:49 +0500
committerLee Jones <lee@kernel.org>2026-09-24 15:12:59 +0100
commit7cd5da70ff2b555f42cb938bcb0f4e8d081908f7 (patch)
tree212684cf3e4d0efa57761db8a90aa1ddb539e81b /drivers/mfd
parenta5712fe170af6b5eab3e148c1bd794d539c90150 (diff)
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/intel-lpss.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd/intel-lpss.c
index 190de88d146a..170cc004a944 100644
--- a/drivers/mfd/intel-lpss.c
+++ b/drivers/mfd/intel-lpss.c
@@ -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)