hwmon: (tps23861) create unique debugfs directory per device
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Wed, 7 Sep 2022 01:54:05 +0000 (20:54 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 19 Sep 2022 13:17:06 +0000 (06:17 -0700)
commit856361b397439157f7f60fd21efb522bb11f537a
tree40bbcd19f431c54cc15270c46ffe31f66cf5f907
parent0fed840c7562d9dcc5bf8a91744b079e952683d1
hwmon: (tps23861) create unique debugfs directory per device

On systems with more than one tps23861, creating the debugfs directory
for additional devices fails with

    debugfs: Directory 'tps23861' with parent '/' already present!

To resolve this, include the hwmon device name in the directory name.
Since the name is unique, this guarantees that the debugfs directory
is unique.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220907015405.16547-2-mr.nuke.me@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tps23861.c