Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: tps65010: Use per-client debugfs directory

The I2C core now provides a debugfs entry for each client. Let this
driver use it instead of the root directory. Further improvements by
this change: automatic support of multiple instances.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250318091234.22170-1-wsa+renesas@sang-engineering.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Wolfram Sang and committed by
Lee Jones
70a9d374 1d2aeee6

+1 -2
+1 -2
drivers/mfd/tps65010.c
··· 512 512 if (client->irq > 0) 513 513 free_irq(client->irq, tps); 514 514 cancel_delayed_work_sync(&tps->work); 515 - debugfs_remove(tps->file); 516 515 the_tps = NULL; 517 516 } 518 517 ··· 607 608 608 609 tps65010_work(&tps->work.work); 609 610 610 - tps->file = debugfs_create_file(DRIVER_NAME, S_IRUGO, NULL, 611 + tps->file = debugfs_create_file(DRIVER_NAME, S_IRUGO, client->debugfs, 611 612 tps, DEBUG_FOPS); 612 613 613 614 /* optionally register GPIOs */